1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-10-16 15:07:27 +00:00

Add missing which parameter to /api/events/[slug]

This commit is contained in:
Steffo 2022-05-31 15:44:58 +02:00
parent 7a29d5aaf0
commit 15c8d928c0
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -34,9 +34,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
model: client.event,
retrieve: {which},
create: {create},
upsert: {create, update, before: canEdit},
update: {update, before: canEdit},
destroy: {before: canEdit},
upsert: {which, create, update, before: canEdit},
update: {which, update, before: canEdit},
destroy: {which, before: canEdit},
})
})
}