From 77d6da3a7f5d32805938659f21950221400b8e0b Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 23 Nov 2018 08:21:21 +0100 Subject: [PATCH] =?UTF-8?q?#393=20validador=20del=20iban=20en=20client=20s?= =?UTF-8?q?olo=20tiene=20que=20validar=20iban=20de=20Espa=C3=B1a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/loopback/common/models/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/loopback/common/models/client.js b/services/loopback/common/models/client.js index 5b0be47f5..0341793a1 100644 --- a/services/loopback/common/models/client.js +++ b/services/loopback/common/models/client.js @@ -54,7 +54,7 @@ module.exports = Self => { }; let country = await Self.app.models.Country.findOne(filter); let code = country ? country.code.toLowerCase() : null; - if (code === 'fr') + if (code != 'es') return done(); if (!validateIban(this.iban))