File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ export class BaileysStartupService extends ChannelStartupService {
382382 qrcodeTerminal . generate ( qr , { small : true } , ( qrcode ) =>
383383 this . logger . log (
384384 `\n{ instance: ${ this . instance . name } pairingCode: ${ this . instance . qrcode . pairingCode } , qrcodeCount: ${ this . instance . qrcode . count } }\n` +
385- qrcode ,
385+ qrcode ,
386386 ) ,
387387 ) ;
388388
@@ -1023,18 +1023,18 @@ export class BaileysStartupService extends ChannelStartupService {
10231023
10241024 const messagesRepository : Set < string > = new Set (
10251025 chatwootImport . getRepositoryMessagesCache ( instance ) ??
1026- (
1027- await this . prismaRepository . message . findMany ( {
1028- select : { key : true } ,
1029- where : { instanceId : this . instanceId } ,
1030- } )
1031- ) . map ( ( message ) => {
1032- const key = message . key as {
1033- id : string ;
1034- } ;
1035-
1036- return key . id ;
1037- } ) ,
1026+ (
1027+ await this . prismaRepository . message . findMany ( {
1028+ select : { key : true } ,
1029+ where : { instanceId : this . instanceId } ,
1030+ } )
1031+ ) . map ( ( message ) => {
1032+ const key = message . key as {
1033+ id : string ;
1034+ } ;
1035+
1036+ return key . id ;
1037+ } ) ,
10381038 ) ;
10391039
10401040 if ( chatwootImport . getRepositoryMessagesCache ( instance ) === null ) {
You can’t perform that action at this time.
0 commit comments