mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-19 17:12:58 -05:00
auto approve record if admin
This commit is contained in:
parent
cb135d8b64
commit
d9ce4a9050
|
|
@ -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 },
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user