refs #5837 fix filter existingClient France
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0d308ec8ad
commit
6d8b3e346d
|
@ -50,9 +50,14 @@ module.exports = Self => {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const client = await Self.app.models.Client.findOne(filter);
|
|
||||||
if (client)
|
const existingClient = await Self.app.models.Client.findOne(filter);
|
||||||
|
|
||||||
|
if (existingClient) {
|
||||||
|
if (this.countryFk !== 19 && this.socialName === existingClient.socialName)
|
||||||
err();
|
err();
|
||||||
|
}
|
||||||
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue