[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(
`INSERT INTO ${dataSourceMetadata.schema}."messageChannel" ("visibility", "handle", "connectedAccountId", "type", "isContactAutoCreationEnabled") VALUES ($1, $2, $3, $4, $5)`,
['share_everything', handle, connectedAccountId, 'email', true],
`INSERT INTO ${dataSourceMetadata.schema}."messageChannel" ("visibility", "handle", "connectedAccountId", "type") VALUES ($1, $2, $3, $4)`,
['share_everything', handle, connectedAccountId, 'email'],
);
});

View File

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