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