This commit is contained in:
Timur Ercan
2023-01-27 20:28:04 +01:00
parent 388a784ff3
commit adc34ac282
2 changed files with 3 additions and 1 deletions

View File

@ -163,6 +163,8 @@ export async function getServerSideProps(context: any) {
},
});
// todo optimize querys
const sent = await prisma.recipient.groupBy({
by: ["documentId"],
where: {