From 6e5f20ed180275b4d1bdf75f034401531833800f Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 13 Jun 2024 15:16:16 +0700 Subject: [PATCH] fix citizenId --- src/controllers/ProfileController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index f82cf049..99f6ce42 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3147,7 +3147,7 @@ export class ProfileController extends Controller { const skip = (page - 1) * pageSize; const take = pageSize; switch (body.fieldName) { - case "idcard": + case "citizenId": [findProfile, total] = await this.profileRepo.findAndCount({ where: { citizenId: Like(`%${body.keyword}%`), @@ -3264,7 +3264,7 @@ export class ProfileController extends Controller { firstName: item.firstName, lastName: item.lastName, position: item.position, - idcard: item.citizenId, + citizenId: item.citizenId, email: item.email, phone: item.phone, name: fullName,