mirror of
https://github.com/documenso/documenso.git
synced 2025-11-24 05:32:12 +10:00
26 lines
433 B
TypeScript
26 lines
433 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export const findComments = async () => {
|
|
return await prisma.documentComment.findMany({
|
|
where: {
|
|
parentId: null,
|
|
},
|
|
include: {
|
|
User: {
|
|
select: {
|
|
name: true,
|
|
},
|
|
},
|
|
replies: {
|
|
include: {
|
|
User: {
|
|
select: {
|
|
name: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
};
|