Last active
August 29, 2015 14:07
-
-
Save lefnire/60731384d1189c08b1e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/models/task.js b/src/models/task.js | |
index 4b99640..62e2803 100644 | |
--- a/src/models/task.js | |
+++ b/src/models/task.js | |
@@ -83,7 +83,8 @@ var TodoSchema = new Schema( | |
var RewardSchema = new Schema( | |
_.defaults({ | |
- type: {type:String, 'default': 'reward'} | |
+ type: {type:String, 'default': 'reward'}, | |
+ purchaseHistory: Array // [{taskId, timestamp}] | |
}, TaskSchema) | |
, { _id: false, minimize:false } | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment