mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
feat(invitations): completed admin UI, with minor changes to backend
This commit is contained in:
@ -4,6 +4,8 @@ export default defineEventHandler(async (h3) => {
|
||||
const user = await h3.context.session.getAdminUser(h3);
|
||||
if (!user) throw createError({ statusCode: 403 });
|
||||
|
||||
await runTask("cleanup:invitations");
|
||||
|
||||
const invitations = await prisma.invitation.findMany({});
|
||||
return invitations;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user