@giftwizard/db-models
Advanced tools
Comparing version 17.0.0 to 17.0.1
@@ -28,16 +28,3 @@ const { v4: uuid } = require('uuid'); | ||
source: { | ||
type: DataTypes.TEXT, | ||
get() { | ||
if (typeof this.getDataValue('source') === 'string') { | ||
return JSON.parse(this.getDataValue('source')); | ||
} | ||
return this.getDataValue('source'); | ||
}, | ||
set(val) { | ||
if (typeof val === 'object') { | ||
this.setDataValue('source', JSON.stringify(val)); | ||
} else { | ||
this.setDataValue('source', val); | ||
} | ||
}, | ||
type: DataTypes.JSON, | ||
}, | ||
@@ -52,3 +39,3 @@ state: { | ||
{ | ||
tableName: 'bulks', | ||
tableName: 'Bulks', | ||
paranoid: true, | ||
@@ -55,0 +42,0 @@ underscored: true, |
{ | ||
"name": "@giftwizard/db-models", | ||
"version": "17.0.0", | ||
"version": "17.0.1", | ||
"description": "Rise.ai package for 'sequelize' models used by several projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
90993
3413