[messaging] fix add messageParticipant not in a transaction (#3981)
This commit is contained in:
@ -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'],
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@ -215,6 +215,7 @@ export class MessageService {
|
||||
message.participants,
|
||||
newMessageId,
|
||||
workspaceId,
|
||||
manager,
|
||||
);
|
||||
|
||||
return Promise.resolve(newMessageId);
|
||||
|
||||
Reference in New Issue
Block a user