Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another oopsie
  • Loading branch information
regalijan committed Mar 6, 2024
1 parent 0927158 commit 3bcb604
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/api/events-team/team-members/user.ts
Expand Up @@ -71,9 +71,10 @@ export async function onRequestPatch(context: RequestContext) {

await context.env.D1.prepare(
`UPDATE et_members
SET ${updates.map((u) => u.query).join(", ")};`,
SET ${updates.map((u) => u.query).join(", ")}
WHERE id = ?;`,
)
.bind(...updates.map((u) => u.value))
.bind(...updates.map((u) => u.value), body.id)
.run();

return jsonResponse(
Expand Down

0 comments on commit 3bcb604

Please sign in to comment.