Skip to content

Commit

Permalink
Another fix for ongoing monitoring table (#2779)
Browse files Browse the repository at this point in the history
* feat: another fix

* feat: small fix
  • Loading branch information
tomer-shvadron committed Oct 14, 2024
1 parent 26da716 commit 9778125
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export class BusinessReportControllerInternal {
status: BusinessReportStatus.completed,
},
];

const args = {
where: {
businessId,
Expand All @@ -263,10 +264,12 @@ export class BusinessReportControllerInternal {
},
},
{ business: { website: { contains: search, mode: QueryMode.Insensitive } } },
...ongoingOrCondition,
],
}
: { OR: ongoingOrCondition }),
: {}),
AND: {
OR: ongoingOrCondition,
},
},
select: {
id: true,
Expand All @@ -290,7 +293,7 @@ export class BusinessReportControllerInternal {
| undefined,
take: page.size,
skip: (page.number - 1) * page.size,
};
} satisfies Parameters<typeof this.businessReportService.findMany>[0];

const businessReports = await this.businessReportService.findMany(args, [currentProjectId]);

Expand Down

0 comments on commit 9778125

Please sign in to comment.