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'); .toString('base64');
let hash = crypto.createHash('sha1'); let hash = crypto.createHash('sha1');
hash.update(password); hash.updateAll(password);
hash.update(salt, 'binary'); hash.updateAll(salt, 'binary');
let digest = hash.digest('binary'); let digest = hash.digest('binary');
let ssha = Buffer let ssha = Buffer

View File

@ -40,7 +40,7 @@ module.exports = Self => {
if (!tax.taxClassFk) if (!tax.taxClassFk)
throw new UserError('Tax class cannot be blank'); 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}, {id: tax.id},
{taxClassFk: tax.taxClassFk} {taxClassFk: tax.taxClassFk}
), myOptions); ), myOptions);