Skip to content

Commit

Permalink
[messaging] fix empty history
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiko committed Feb 27, 2024
1 parent a19de71 commit dd06d1e
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 dd06d1e

Please sign in to comment.