Skip to content

Commit

Permalink
🐝 switch to uniform where clause arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Mar 22, 2024
1 parent e34908f commit c9d157c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baker/postUpdatedHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const syncPostToGrapher = async (
else if (existsInGrapher)
await knex
.table(postsTable)
.where("id", "=", rowForDb.id)
.where({ id: rowForDb.id })
.update(rowForDb)
}

Expand Down
2 changes: 1 addition & 1 deletion db/syncPostsToGrapher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const syncPostsToGrapher = async (
if (doesExistInGrapher[row.id])
await knex
.update(rowForDb)
.where("id", "=", rowForDb.id)
.where({id: rowForDb.id})
.into(postsTable)
else await knex.insert(rowForDb).into(postsTable)
}
Expand Down

0 comments on commit c9d157c

Please sign in to comment.