Skip to content

Commit

Permalink
[messaging] fix empty history (twentyhq#4218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiko authored Feb 28, 2024
1 parent 083828b commit a649425
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class GmailPartialSyncService {
throw new Error('No history id found');
}

if (newHistoryId === lastSyncHistoryId) {
if (newHistoryId === lastSyncHistoryId || !history?.history?.length) {
this.logger.log(
`gmail partial-sync for workspace ${workspaceId} and account ${connectedAccountId} done with nothing to update.`,
);
Expand Down

0 comments on commit a649425

Please sign in to comment.