summaryrefslogtreecommitdiff
path: root/lib/vendors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendors')
-rw-r--r--lib/vendors/service.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/vendors/service.ts b/lib/vendors/service.ts
index e6a2a139..6132832f 100644
--- a/lib/vendors/service.ts
+++ b/lib/vendors/service.ts
@@ -1396,10 +1396,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number
))
.leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id))
.leftJoin(projects, eq(rfqsLast.projectId, projects.id))
- .where(and(
- advancedWhere,
- globalWhere
- ))
+ .where(finalWhere)
.orderBy(...orderBy)
.limit(input.perPage)
.offset(offset);
@@ -1449,10 +1446,7 @@ export async function getRfqHistory(input: GetRfqHistorySchema, vendorId: number
))
.leftJoin(rfqLastDetails, eq(rfqLastVendorResponses.rfqLastDetailsId, rfqLastDetails.id))
.leftJoin(projects, eq(rfqsLast.projectId, projects.id))
- .where(and(
- advancedWhere,
- globalWhere
- ));
+ .where(finalWhere);
const totalCount = total[0]?.count ?? 0;
logger.debug({ totalCount }, "RFQ history total count");