ipa-customer-settings
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "ipa-customer-settings", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "ipa-customer-settings", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"author": "OpusCapita", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
'use strict'; | ||
const InheritanceSettingsApi = require('./inheritanceSettings'); | ||
const CustomerSettingsApi = require('./customerSettings'); | ||
const init = db => { | ||
InheritanceSettingsApi.getInstance(db); | ||
CustomerSettingsApi.getInstance(db); | ||
}; | ||
module.exports = { init, InheritanceSettingsApi }; | ||
module.exports = { init, InheritanceSettingsApi, CustomerSettingsApi }; |
@@ -60,3 +60,3 @@ 'use strict'; | ||
async findById(id) { | ||
const setting = await this.db.models.InheritanceSettings.findOne({ where: { id } }); | ||
const setting = await this.db.models.InheritanceSettings.findById(id); | ||
if (setting) { | ||
@@ -63,0 +63,0 @@ return setting.toJSON(); |
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
81349
18
2276