@dhyasama/totem-models 5.8.1 → 5.8.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/Deal.js CHANGED
@@ -59,6 +59,12 @@ module.exports = function(mongoose, config) {
59
59
  // VIRTUALS
60
60
  // Properties that are not persisted to the database
61
61
  ///////////////////////////////////////////////////////////////////////////////////////
62
+ Deal.virtual('deck').get(function () {
63
+
64
+ var self = this;
65
+ return _.find(self.documents, function(document) { return document.type == 'deck'; })
66
+
67
+ });
62
68
 
63
69
  Deal.virtual('added').get(function () {
64
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.8.1",
3
+ "version": "5.8.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- lib-cov
2
- *.seed
3
- *.log
4
- *.csv
5
- *.dat
6
- *.out
7
- *.pid
8
- *.gz
9
-
10
- npm-debug.log
11
- node_modules
12
-
13
- .DS_Store
14
- .idea