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 (#5037)
  • Loading branch information
Weiko authored and ijreilly committed Apr 19, 2024
1 parent 3fc9c06 commit 9f41580
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 9f41580

Please sign in to comment.