Actually insert appeals into D1
This commit is contained in:
parent
acfd2be227
commit
c848453b1b
@ -85,6 +85,12 @@ export async function onRequestPost(context: RequestContext) {
|
||||
},
|
||||
);
|
||||
|
||||
await context.env.D1.prepare(
|
||||
"INSERT INTO appeals (created_at, id, open, user) VALUES (?, ?, ?, ?)",
|
||||
)
|
||||
.bind(Date.now(), appealId, 1, currentUser.id)
|
||||
.run();
|
||||
|
||||
await fetch(context.env.APPEALS_WEBHOOK, {
|
||||
body: JSON.stringify({
|
||||
embeds: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user