1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +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, model: client.event,
retrieve: {which}, retrieve: {which},
create: {create}, create: {create},
upsert: {create, update, before: canEdit}, upsert: {which, create, update, before: canEdit},
update: {update, before: canEdit}, update: {which, update, before: canEdit},
destroy: {before: canEdit}, destroy: {which, before: canEdit},
}) })
}) })
} }