update
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user