fix bug
This commit is contained in:
parent
9bfc141e4b
commit
a47f07110a
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue