[messaging] fix add messageParticipant not in a transaction (#3981)

This commit is contained in:
Weiko
2024-02-14 19:28:25 +01:00
committed by GitHub
parent 2055f64acd
commit 49cc01d7d8
2 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,8 @@ export class GoogleGmailService {
); );
await manager.query( await manager.query(
`INSERT INTO ${dataSourceMetadata.schema}."messageChannel" ("visibility", "handle", "connectedAccountId", "type", "isContactAutoCreationEnabled") VALUES ($1, $2, $3, $4, $5)`, `INSERT INTO ${dataSourceMetadata.schema}."messageChannel" ("visibility", "handle", "connectedAccountId", "type") VALUES ($1, $2, $3, $4)`,
['share_everything', handle, connectedAccountId, 'email', true], ['share_everything', handle, connectedAccountId, 'email'],
); );
}); });

View File

@ -215,6 +215,7 @@ export class MessageService {
message.participants, message.participants,
newMessageId, newMessageId,
workspaceId, workspaceId,
manager,
); );
return Promise.resolve(newMessageId); return Promise.resolve(newMessageId);