Another oopsie
This commit is contained in:
parent
0927158e7b
commit
3bcb604a4b
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user