adding the predicate in the UPSERT function (#9891)

Bug fix : we are adding the predicate in the UPSERT function in order to
fix a postgres constraint
This commit is contained in:
Guillim
2025-01-28 16:51:37 +01:00
committed by GitHub
parent aa6d5c4c51
commit 72d4619cd4

View File

@ -65,7 +65,10 @@ export class MessagingMessageService {
messageExternalId: message.externalId,
messageThreadExternalId: message.messageThreadExternalId,
},
['messageChannelId', 'messageId'],
{
conflictPaths: ['messageChannelId', 'messageId'],
indexPredicate: '"deletedAt" IS NULL',
},
transactionManager,
);