spice-js 2.5.23 → 2.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -234,7 +234,7 @@ class SpiceModel {
234
234
  returnVal.push("shouldExist:" + props[i]);
235
235
  }
236
236
 
237
- if (i == "unique") {
237
+ if (i == "unique" && props[i] == true) {
238
238
  returnVal.push("unique:" + this.constructor.name + "," + property_name);
239
239
  }
240
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.5.23",
3
+ "version": "2.5.24",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {