Fix Messaging sync upsert in messageChannel association (#9880)

We have recently changed an .insert into a .upsert but we forgot to add
the unique index on the postgres schema.
This commit is contained in:
Charles Bochet
2025-01-28 11:48:09 +01:00
committed by GitHub
parent 069c34cd7b
commit 6f72f1af33
2 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export class MessagingMessageService {
messageExternalId: message.externalId,
messageThreadExternalId: message.messageThreadExternalId,
},
['messageChannelId'],
['messageChannelId', 'messageId'],
transactionManager,
);