[Messaging] Delete empty threads after message deletion import (#3716)
* [Messaging] Delete empty threads after message deletion import * fix
This commit is contained in:
@ -52,8 +52,8 @@ export class GmailFullSyncService {
|
||||
|
||||
const gmailMessageChannel =
|
||||
await this.messageChannelService.getFirstByConnectedAccountIdOrFail(
|
||||
workspaceId,
|
||||
connectedAccountId,
|
||||
workspaceId,
|
||||
);
|
||||
|
||||
const gmailMessageChannelId = gmailMessageChannel.id;
|
||||
@ -129,7 +129,7 @@ export class GmailFullSyncService {
|
||||
|
||||
if (!historyId) throw new Error('No history id found');
|
||||
|
||||
await this.connectedAccountService.saveLastSyncHistoryId(
|
||||
await this.connectedAccountService.updateLastSyncHistoryId(
|
||||
historyId,
|
||||
connectedAccount.id,
|
||||
workspaceId,
|
||||
|
||||
Reference in New Issue
Block a user