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:
@ -65,7 +65,10 @@ export class MessagingMessageService {
|
||||
messageExternalId: message.externalId,
|
||||
messageThreadExternalId: message.messageThreadExternalId,
|
||||
},
|
||||
['messageChannelId', 'messageId'],
|
||||
{
|
||||
conflictPaths: ['messageChannelId', 'messageId'],
|
||||
indexPredicate: '"deletedAt" IS NULL',
|
||||
},
|
||||
transactionManager,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user