Another oopsie

This commit is contained in:
Regalijan 2024-03-06 00:29:44 -05:00
parent 0927158e7b
commit 3bcb604a4b
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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(