diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 7462474a..e62eaa47 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -155,7 +155,10 @@ export class ProfileController extends Controller { } const checkCitizenId = await this.profileRepository.findOne({ - where: { citizenId: requestBody.citizenId }, + where: { + id: Not(id), + citizenId: requestBody.citizenId , + }, }); if (checkCitizenId) {