feat(invitations): completed admin UI, with minor changes to backend

This commit is contained in:
DecDuck
2024-11-07 23:23:49 +11:00
parent c7b675f841
commit 599da0e348
8 changed files with 677 additions and 1 deletions

View File

@ -9,6 +9,8 @@ export default defineEventHandler(async (h3) => {
statusMessage: "id required in fetching invitation",
});
await runTask("cleanup:invitations");
const invitation = await prisma.invitation.findUnique({ where: { id: id } });
if (!invitation)
throw createError({