mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-25 21:13:01 +03:00
Fix reconnect google account bug (#5905)
Update syncStage to FULL_MESSAGE_LIST_FETCH_PENDING when reconnecting the account to trigger a full sync on the next cron iteration.
This commit is contained in:
parent
d6fcb9cae8
commit
016132ecf6
@ -57,7 +57,11 @@ export class MessageChannelRepository {
|
||||
this.workspaceDataSourceService.getSchemaName(workspaceId);
|
||||
|
||||
await this.workspaceDataSourceService.executeRawQuery(
|
||||
`UPDATE ${dataSourceSchema}."messageChannel" SET "syncStatus" = NULL, "syncCursor" = '', "syncStageStartedAt" = NULL
|
||||
`UPDATE ${dataSourceSchema}."messageChannel"
|
||||
SET "syncStatus" = NULL,
|
||||
"syncStage" = '${MessageChannelSyncStage.FULL_MESSAGE_LIST_FETCH_PENDING}',
|
||||
"syncCursor" = '',
|
||||
"syncStageStartedAt" = NULL
|
||||
WHERE "connectedAccountId" = $1`,
|
||||
[connectedAccountId],
|
||||
workspaceId,
|
||||
|
Loading…
Reference in New Issue
Block a user