diff --git a/modules/account/back/models/ldap-config.js b/modules/account/back/models/ldap-config.js index 819659066..f61aa2db5 100644 --- a/modules/account/back/models/ldap-config.js +++ b/modules/account/back/models/ldap-config.js @@ -77,8 +77,8 @@ module.exports = Self => { .toString('base64'); let hash = crypto.createHash('sha1'); - hash.update(password); - hash.update(salt, 'binary'); + hash.updateAll(password); + hash.updateAll(salt, 'binary'); let digest = hash.digest('binary'); let ssha = Buffer diff --git a/modules/item/back/methods/item/updateTaxes.js b/modules/item/back/methods/item/updateTaxes.js index 70a82757a..262f4dcb1 100644 --- a/modules/item/back/methods/item/updateTaxes.js +++ b/modules/item/back/methods/item/updateTaxes.js @@ -40,7 +40,7 @@ module.exports = Self => { if (!tax.taxClassFk) throw new UserError('Tax class cannot be blank'); - promises.push(Self.app.models.ItemTaxCountry.update( + promises.push(Self.app.models.ItemTaxCountry.updateAll( {id: tax.id}, {taxClassFk: tax.taxClassFk} ), myOptions);