Commit 5b4fb32a by Augusto

bug fix

parent a20e2148
......@@ -596,9 +596,11 @@ export class SitesService {
...(type && { type: { contains: type, mode: Prisma.QueryMode.insensitive } }),
...(isDigi !== undefined && { isDigi }),
...(isReported !== undefined && { isReported }),
candidates: {
some: {},
}
...(withCandidates === true && {
candidates: {
some: {},
}
})
};
const sites = await this.prisma.site.findMany({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment