Latest bits

This commit is contained in:
Dobie Wollert
2015-06-29 00:45:40 -04:00
parent b80f326ec2
commit 0d5ebb3f43
12 changed files with 241 additions and 29 deletions

View File

@ -43,7 +43,6 @@ function renderHtml(input) {
try {
return markdown.toHTML(input);
} catch (err) {
console.log('Failed to render html', err);
return input;
}
} else {
@ -108,8 +107,6 @@ exports.create = function(req, res, next) {
exports.update = function(req, res, next) {
var id = req.param('post_id');
console.log('updating post');
return Post.findById(id, function(err, post) {
post.title = req.body.title;
post.preview = req.body.preview;