@dhyasama/totem-models 4.5.1 → 4.5.2
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.
- package/lib/Organization.js +1 -1
- package/package.json +2 -2
- package/test/Organization.js +1 -1
package/lib/Organization.js
CHANGED
|
@@ -389,7 +389,7 @@ module.exports = function(mongoose, config) {
|
|
|
389
389
|
// Don't return statuses for a different customer
|
|
390
390
|
if (self._id.toString() != config.CUSTOMER_ID) return statuses;
|
|
391
391
|
|
|
392
|
-
// Backwards schema
|
|
392
|
+
// Backwards schema compatibility
|
|
393
393
|
else if (!self.customer.deals) return statuses;
|
|
394
394
|
|
|
395
395
|
// Deals aren't on for customer
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhyasama/totem-models",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"author": "Jason Reynolds",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "Models for Totem platform",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"test": "NODE_ENV=test node ./changeBSON && mocha -R spec -t 15000"
|
|
9
|
+
"test": "NODE_ENV=test node ./changeBSON && mocha -R spec -t 15000 --exit"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"registry": "https://registry.npmjs.org/"
|
package/test/Organization.js
CHANGED