fix search
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s

This commit is contained in:
Adisak 2026-05-26 18:34:47 +07:00
parent 9288c9e833
commit 8b08f8b5c8
3 changed files with 5 additions and 5 deletions

View file

@ -1156,7 +1156,7 @@ export class EmployeePositionController extends Controller {
...(body.keyword &&
(masterId.length > 0
? { id: In(masterId) }
: keywordAsInt != null ? { posMasterNo: keywordAsInt } : {})),
: /^\d+$/.test(body.keyword) ? { posMasterNo: keywordAsInt } : { posMasterNo: Like(`%${body.keyword}%`) })),
},
];