Skip to content

Commit f35f8dd

Browse files
committed
feat: Update the cw message with the wpp time
1 parent f972686 commit f35f8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/chatwoot/utils/chatwoot-import-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ class ChatwootImport {
546546
public updateMessageSourceID(messageId: string | number, sourceId: string) {
547547
const pgClient = postgresClient.getChatwootConnection();
548548

549-
const sql = `UPDATE messages SET source_id = $1, status = 0 WHERE id = $2;`;
549+
const sql = `UPDATE messages SET source_id = $1, status = 0, created_at = NOW(), updated_at = NOW() WHERE id = $2;`;
550550

551551
return pgClient.query(sql, [`WAID:${sourceId}`, messageId]);
552552
}

0 commit comments

Comments
 (0)