Skip to content

Commit

Permalink
Update updatedAt timestamp after a integration check
Browse files Browse the repository at this point in the history
  • Loading branch information
skwowet committed Sep 20, 2023
1 parent a9a9715 commit 1341a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default class IntegrationRunRepository extends RepositoryBase<Integration

public async markIntegration(runId: string, state: string): Promise<void> {
const result = await this.db().result(
`update integrations set status = $(state) where id = (select "integrationId" from integration.runs where id = $(runId) limit 1)`,
`update integrations set status = $(state), "updatedAt" = now() where id = (select "integrationId" from integration.runs where id = $(runId) limit 1)`,
{
runId,
state,
Expand Down

0 comments on commit 1341a75

Please sign in to comment.