no message

This commit is contained in:
Kittapath 2024-02-09 22:55:42 +07:00
parent 3bfbb93691
commit bc86f4d2d9
5 changed files with 200 additions and 128 deletions

View file

@ -330,6 +330,14 @@ export class ProfileController extends Controller {
{
keyword: `%${requestBody.keyword}%`,
},
)
.orWhere(
requestBody.keyword != null && requestBody.keyword != ""
? "profile.citizenId LIKE :keyword"
: "1=1",
{
keyword: `%${requestBody.keyword}%`,
},
);
}),
)