refactor(updateAll): usage of documented methods as update alias is not documented in loopback

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-29 08:26:10 +02:00
parent 6cf1737c0d
commit e690febc7f
2 changed files with 3 additions and 3 deletions

View File

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

View File

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