Skip to content

Instantly share code, notes, and snippets.

@lefnire
Last active August 29, 2015 14:07
Show Gist options
  • Save lefnire/60731384d1189c08b1e1 to your computer and use it in GitHub Desktop.
Save lefnire/60731384d1189c08b1e1 to your computer and use it in GitHub Desktop.
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