[messaging]Add temporary capture to gmail refresh token exceptions (#4875)
## Context This exception is currently caught since this is expected but it seems to be rejected more than it should so we want to have more visibility on it ## Test <img width="562" alt="Screenshot 2024-04-08 at 11 32 28" src="https://github.com/twentyhq/twenty/assets/1834158/43bb6de9-191a-42d4-911b-6e83c7d8aa18">
This commit is contained in:
@ -144,7 +144,7 @@ export class ConnectedAccountRepository {
|
||||
this.workspaceDataSourceService.getSchemaName(workspaceId);
|
||||
|
||||
await this.workspaceDataSourceService.executeRawQuery(
|
||||
`UPDATE ${dataSourceSchema}."connectedAccount" SET "accessToken" = $1 WHERE "id" = $2`,
|
||||
`UPDATE ${dataSourceSchema}."connectedAccount" SET "accessToken" = $1, "authFailedAt" = NULL WHERE "id" = $2`,
|
||||
[accessToken, connectedAccountId],
|
||||
workspaceId,
|
||||
transactionManager,
|
||||
|
||||
Reference in New Issue
Block a user