Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use correct property names in appeal submission endpoint
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 7dc655d commit 812ebd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/appeals/submit.ts
Expand Up @@ -69,17 +69,17 @@ export async function onRequestPost(context: RequestContext) {
await context.env.DATA.put(
`appeal_${appealId}`,
JSON.stringify({
ban_reason: whyBanned,
createdAt: Date.now(),
learned,
id: appealId,
reason_for_unban: whyUnban,
user: {
discriminator: currentUser.discriminator,
email: currentUser.email,
id: currentUser.id,
username: currentUser.username,
},
whyBanned,
whyUnban,
}),
{
expirationTtl: 94608000,
Expand Down

0 comments on commit 812ebd9

Please sign in to comment.