Another oopsie

This commit is contained in:
2024-03-06 00:29:44 -05:00
parent 0927158e7b
commit 3bcb604a4b

View File

@ -71,9 +71,10 @@ export async function onRequestPatch(context: RequestContext) {
await context.env.D1.prepare( await context.env.D1.prepare(
`UPDATE et_members `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(); .run();
return jsonResponse( return jsonResponse(