@dhyasama/totem-models 1.17.8 → 1.18.1
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/.npmignore +14 -0
- package/lib/Account.js +2 -1
- package/lib/Organization.js +10 -0
- package/package.json +1 -1
package/.npmignore
ADDED
package/lib/Account.js
CHANGED
|
@@ -76,7 +76,8 @@ module.exports = function(mongoose, config) {
|
|
|
76
76
|
refreshToken: { type: String, default: '' },
|
|
77
77
|
params: { type: Schema.Types.Mixed },
|
|
78
78
|
profile: { type: Schema.Types.Mixed },
|
|
79
|
-
watch: { type: Schema.Types.Mixed }
|
|
79
|
+
watch: { type: Schema.Types.Mixed },
|
|
80
|
+
deltaLink: { type: String, default: null }
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
},
|
package/lib/Organization.js
CHANGED
|
@@ -590,6 +590,16 @@ module.exports = function(mongoose, config) {
|
|
|
590
590
|
.exec(cb);
|
|
591
591
|
};
|
|
592
592
|
|
|
593
|
+
Organization.statics.findByIdsUnpopulated = function findByIdsUnpopulated(ids, cb) {
|
|
594
|
+
|
|
595
|
+
var self = this;
|
|
596
|
+
|
|
597
|
+
self
|
|
598
|
+
.find({ '_id': { $in : ids }})
|
|
599
|
+
.exec(cb);
|
|
600
|
+
|
|
601
|
+
};
|
|
602
|
+
|
|
593
603
|
Organization.statics.findByIds = function findByIds(ids, cb) {
|
|
594
604
|
|
|
595
605
|
var self = this;
|