This commit is contained in:
wayanrivan
2026-04-20 10:08:43 +07:00
parent 787ca4ad25
commit 45878bf91e

View File

@ -54,12 +54,12 @@ export class RegistrationFeeController {
// ── Filter RegistrationFee.type ─────────────────────────────────── // ── Filter RegistrationFee.type ───────────────────────────────────
if (filter.type && filter.type !== "") { if (filter.type && filter.type !== "") {
query.andWhere("RegistrationFee.type = :type", { type: filter.type }); query.orWhere("RegistrationFee.type = :type", { type: filter.type });
} }
// ── Filter service.name ─────────────────────────────────────────── // ── Filter service.name ───────────────────────────────────────────
if (filter.service_name && filter.service_name !== "") { if (filter.service_name && filter.service_name !== "") {
query.andWhere("service.name ILIKE :service_name", { service_name: `%${filter.service_name}%` }); query.orWhere("service.name ILIKE :service_name", { service_name: `%${filter.service_name}%` });
} }
const result = await query.getMany(); const result = await query.getMany();