mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
fix: wip
This commit is contained in:
@ -40,7 +40,7 @@ export const findDocuments = async ({
|
||||
orderBy,
|
||||
period,
|
||||
senderIds,
|
||||
query,
|
||||
query = '',
|
||||
}: FindDocumentsOptions) => {
|
||||
const user = await prisma.user.findFirstOrThrow({
|
||||
where: {
|
||||
@ -226,6 +226,8 @@ export const findDocuments = async ({
|
||||
};
|
||||
}
|
||||
|
||||
console.log(JSON.stringify(whereClause, null, 2));
|
||||
|
||||
const [data, count] = await Promise.all([
|
||||
prisma.document.findMany({
|
||||
where: whereClause,
|
||||
|
||||
Reference in New Issue
Block a user