Fix gmail sync retry (#9575)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2025-07-21 15:10:09 +07:00
committed by GitHub
parent 118f934ffe
commit 8a3d67fd29
+2 -2
View File
@@ -63,7 +63,7 @@ export class SyncManager {
} catch (err: any) {
this.ctx.error('Part sync get history error', { workspaceUuid: this.workspace, userId, error: err.message })
await this.stateManager.clearHistory(userId)
void this.sync(userId, options)
void this.sync(userId, options, userEmail)
return
}
const nextPageToken = histories.data.nextPageToken
@@ -207,7 +207,7 @@ export class SyncManager {
}
} catch (err) {
if (this.isClosing) return
this.ctx.error('Sync error', { workspace: this.workspace, userId, err })
this.ctx.error('Sync error', { workspace: this.workspace, userId, userEmail, err })
} finally {
releaseLock()
}