From 812ebd913e760184da080083c27383f2082067d1 Mon Sep 17 00:00:00 2001
From: regalijan <r@regalijan.com>
Date: Thu, 19 Oct 2023 16:49:54 -0400
Subject: [PATCH] Use correct property names in appeal submission endpoint

---
 functions/api/appeals/submit.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions/api/appeals/submit.ts b/functions/api/appeals/submit.ts
index f5f1fb4..f743ea6 100644
--- a/functions/api/appeals/submit.ts
+++ b/functions/api/appeals/submit.ts
@@ -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,