Commit 5b4fb32a by Augusto

bug fix

parent a20e2148
...@@ -596,9 +596,11 @@ export class SitesService { ...@@ -596,9 +596,11 @@ export class SitesService {
...(type && { type: { contains: type, mode: Prisma.QueryMode.insensitive } }), ...(type && { type: { contains: type, mode: Prisma.QueryMode.insensitive } }),
...(isDigi !== undefined && { isDigi }), ...(isDigi !== undefined && { isDigi }),
...(isReported !== undefined && { isReported }), ...(isReported !== undefined && { isReported }),
candidates: { ...(withCandidates === true && {
some: {}, candidates: {
} some: {},
}
})
}; };
const sites = await this.prisma.site.findMany({ 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