refactor(updateAll): usage of documented methods as update alias is not documented in loopback
This commit is contained in:
parent
6cf1737c0d
commit
e690febc7f
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue