Permalink
Browse files

bogart-couchdb, fixed a problem with postedAt poitned out by Seth Stone

  • Loading branch information...
1 parent 2186975 commit 06c74f0b5286ceead1e7e60841203b01a9ea7a23 @nrstott nrstott committed Dec 16, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 articles/bogart-couchdb/app.js
@@ -41,6 +41,7 @@ router.get('/posts/new', function(req) {
router.post('/posts', function(req) {
var post = req.params;
post.type = 'post';
+ post.postedAt = new Date();
return db.saveDoc(post).then(function(resp) {
return bogart.redirect('/posts');

0 comments on commit 06c74f0

Please sign in to comment.