From 45878bf91e9786691625fb8053bac7024e0e9b84 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Mon, 20 Apr 2026 10:08:43 +0700 Subject: [PATCH] update --- src/controllers/registrationfee.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/registrationfee.ts b/src/controllers/registrationfee.ts index 44243c5..a9a99c5 100644 --- a/src/controllers/registrationfee.ts +++ b/src/controllers/registrationfee.ts @@ -54,12 +54,12 @@ export class RegistrationFeeController { // ── Filter RegistrationFee.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 ─────────────────────────────────────────── 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();