Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // could be shortened further using ternary
- articles.forEach(function(e){
- if(!e.multimedia){
- e.multimedia = [{url: $scope.dummyUrl}];
- }
- });
- ************
- // we able to pass in a function OR value with the Mongoose schema.
- // http://mongoosejs.com/docs/2.7.x/docs/defaults.html
- default: Date.now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement