Skip to content

Commit

Permalink
add updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Nov 2, 2024
1 parent b5b6e89 commit d0a372c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/job-dispatch/src/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,15 @@ export const upsertTargets = async (
.values(targetsToInsert)
.onConflictDoUpdate({
target: [target.identifier, target.workspaceId],
set: buildConflictUpdateColumns(target, [
"name",
"version",
"kind",
"config",
]),
set: {
...buildConflictUpdateColumns(target, [
"name",
"version",
"kind",
"config",
]),
updatedAt: new Date(),
},
})
.returning()
.then((targets) =>
Expand Down

0 comments on commit d0a372c

Please sign in to comment.