File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ https://app.daily.dev`,
136136 userIds : string [ ] ;
137137 config ?: PersonalizedDigestFeatureConfig ;
138138 type ?: UserPersonalizedDigestType ;
139+ deduplicate ?: boolean ;
139140 } ;
140141 } > ( '/digest/send' , async ( req , res ) => {
141142 const authorization = req . headers . authorization ;
@@ -152,7 +153,7 @@ https://app.daily.dev`,
152153 const userCountLimit = 100 ;
153154 res . header ( 'content-type' , 'application/json' ) ;
154155
155- const { userIds, config, type } = req . body || { } ;
156+ const { userIds, config, type, deduplicate } = req . body || { } ;
156157 const digestType = type ?? UserPersonalizedDigestType . Digest ;
157158
158159 if ( ! Array . isArray ( userIds ) ) {
@@ -185,7 +186,7 @@ https://app.daily.dev`,
185186 personalizedDigest,
186187 emailSendTimestamp : timestamp ,
187188 previousSendTimestamp : previousDate . getTime ( ) ,
188- deduplicate : false ,
189+ deduplicate : ! ! deduplicate ,
189190 config,
190191 } ) ;
191192 } ) ,
You can’t perform that action at this time.
0 commit comments