#393 validador del iban en client solo tiene que validar iban de España

This commit is contained in:
Gerard 2018-11-23 08:21:21 +01:00
parent 7d9070ff29
commit 77d6da3a7f
1 changed files with 1 additions and 1 deletions

View File

@ -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))