chore: use shadcn sheets

This commit is contained in:
Ephraim Atta-Duncan
2024-10-11 18:43:09 +00:00
parent eb96f315b6
commit b3ade016e1
13 changed files with 656 additions and 57 deletions

View File

@ -11,7 +11,7 @@ export const getNextInboxDocument = async ({ email }: GetNextInboxDocumentOption
throw new Error('User is required');
}
return await prisma.document.findFirst({
return await prisma.document.findMany({
where: {
Recipient: {
some: {
@ -26,14 +26,17 @@ export const getNextInboxDocument = async ({ email }: GetNextInboxDocumentOption
deletedAt: null,
},
select: {
id: true,
createdAt: true,
title: true,
status: true,
Recipient: {
where: {
email,
},
select: {
token: true,
role: true,
},
},
documentMeta: true,