From d9ce4a9050e1d5d0a0a89aa3bb17df37c212c8f2 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 19 Dec 2020 21:06:55 +0200 Subject: [PATCH] auto approve record if admin --- pages/api/sr/records/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/api/sr/records/index.ts b/pages/api/sr/records/index.ts index 643f5500c..c8068bfca 100644 --- a/pages/api/sr/records/index.ts +++ b/pages/api/sr/records/index.ts @@ -35,8 +35,7 @@ const postHandler = async (req: NextApiRequest, res: NextApiResponse) => { goldenEggCount: parsed.data.goldenEggCount, category: parsed.data.category, links: parsed.data.links.trim().split("\n"), - approved: false, - // approved: SALMON_RUN_ADMIN_DISCORD_IDS.includes(user.discordId) + approved: SALMON_RUN_ADMIN_DISCORD_IDS.includes(user.discordId), submitter: { connect: { id: user.id }, },