Skip to content

Commit

Permalink
[messaging/calendar] fix missing authFailedAt reset once refreshToken…
Browse files Browse the repository at this point in the history
… is updated (twentyhq#5037)
  • Loading branch information
Weiko authored Apr 18, 2024
1 parent dc91d06 commit 220a0e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class ConnectedAccountRepository {
this.workspaceDataSourceService.getSchemaName(workspaceId);

await this.workspaceDataSourceService.executeRawQuery(
`UPDATE ${dataSourceSchema}."connectedAccount" SET "accessToken" = $1, "refreshToken" = $2 WHERE "id" = $3`,
`UPDATE ${dataSourceSchema}."connectedAccount" SET "accessToken" = $1, "refreshToken" = $2, "authFailedAt" = NULL WHERE "id" = $3`,
[accessToken, refreshToken, connectedAccountId],
workspaceId,
transactionManager,
Expand Down

0 comments on commit 220a0e9

Please sign in to comment.