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,