Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipa-customer-settings

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipa-customer-settings - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

2

package-lock.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc