#393 validador del iban en client solo tiene que validar iban de España
This commit is contained in:
parent
7d9070ff29
commit
77d6da3a7f
|
@ -54,7 +54,7 @@ module.exports = Self => {
|
||||||
};
|
};
|
||||||
let country = await Self.app.models.Country.findOne(filter);
|
let country = await Self.app.models.Country.findOne(filter);
|
||||||
let code = country ? country.code.toLowerCase() : null;
|
let code = country ? country.code.toLowerCase() : null;
|
||||||
if (code === 'fr')
|
if (code != 'es')
|
||||||
return done();
|
return done();
|
||||||
|
|
||||||
if (!validateIban(this.iban))
|
if (!validateIban(this.iban))
|
||||||
|
|
Loading…
Reference in New Issue