Open atherdon opened 7 years ago
type: [ 'favorite', 'done', 'modified' ]
Model id, recipeId, userId, type
maybe we need to setup a cron job and each month we can calculate favorite
[ ] Delete fields, like done, favorite from recipe models
[ ] Update import samples
[ ] test how this works
[ ] mocha test
// add favorites, meal done like array of recipe ids.
//favorite/list //favorite/add/ - return id //favorite/delete
//mealdone/add return id //mealdone/delete/:id //mealdone/list
type: [ 'favorite', 'done', 'modified' ]
Model id, recipeId, userId, type
maybe we need to setup a cron job and each month we can calculate favorite
[ ] Delete fields, like done, favorite from recipe models
[ ] Update import samples
[ ] test how this works
[ ] mocha test