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');
|
.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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue