auto approve record if admin

This commit is contained in:
Kalle (Sendou) 2020-12-19 21:06:55 +02:00
parent cb135d8b64
commit d9ce4a9050

View File

@ -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 },
},