ipa-customer-settings
Advanced tools
Comparing version 0.0.31 to 0.0.32
{ | ||
"name": "ipa-customer-settings", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "ipa-customer-settings", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"author": "OpusCapita", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -50,3 +50,3 @@ 'use strict'; | ||
async findOne(params) { | ||
const setting = await this.db.models.CustomerSetting.findById({ where: params }); | ||
const setting = await this.db.models.CustomerSetting.findOne({ where: params }); | ||
if (setting) { | ||
@@ -75,4 +75,4 @@ return setting.toJSON(); | ||
const customerId = customerSettings[0] ? customerSettings[0].customerId : null; | ||
const actualCustomerSettings = await this.findAll({ customerId }); | ||
const itemsToRemove = CustomerSettingsApi.getCustomerSettingsDifference(actualCustomerSettings, customerSettings); | ||
const existingCustomerSettings = await this.findAll({ customerId }); | ||
const itemsToRemove = CustomerSettingsApi.getCustomerSettingsDifference(existingCustomerSettings, customerSettings); | ||
@@ -79,0 +79,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82225