Commit cce4652 1 parent 4db022c commit cce4652 Copy full SHA for cce4652
File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
appendServiceResponse
14
14
} from "./message-sending" ;
15
15
import {
16
+ SpokeSendStatus ,
16
17
getCampaignContactAndAssignmentForIncomingMessage ,
17
18
saveNewIncomingMessage ,
18
19
messageComponents
@@ -330,15 +331,10 @@ export const processDeliveryReport = async body => {
330
331
send_status : getMessageStatus ( MessageStatus )
331
332
} )
332
333
. where ( { service_id } )
333
- . where ( builder =>
334
- builder
335
- . whereNot ( {
336
- send_status : SpokeSendStatus . Delivered
337
- } )
338
- . orWhereNot ( {
339
- send_status : SpokeSendStatus . Error
340
- } )
341
- ) ;
334
+ . whereNotIn ( "send_status" , [
335
+ SpokeSendStatus . Delivered ,
336
+ SpokeSendStatus . Error
337
+ ] ) ;
342
338
} ;
343
339
344
340
async function handleIncomingMessage ( message ) {
You can’t perform that action at this time.
0 commit comments