mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
Fix gmail sync retry (#9575)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user