diff --git a/core/server/api/posts.js b/core/server/api/posts.js index cb906ebdff..26753b967d 100644 --- a/core/server/api/posts.js +++ b/core/server/api/posts.js @@ -66,7 +66,7 @@ posts = { return canThis(self.user).edit.post(postData.id).then(function () { return checkPostData(postData).then(function (checkedPostData) { - return dataProvider.Post.edit(checkedPostData.posts[0], {user: self.user}) + return dataProvider.Post.edit(checkedPostData.posts[0], {user: self.user}); }).then(function (result) { if (result) { var omitted = result.toJSON(); diff --git a/core/test/functional/routes/api/posts_test.js b/core/test/functional/routes/api/posts_test.js index 6227b049aa..13ee9b0eff 100644 --- a/core/test/functional/routes/api/posts_test.js +++ b/core/test/functional/routes/api/posts_test.js @@ -591,8 +591,6 @@ describe('Post API', function () { .send(newPost) .expect(200) .end(function (err ,res) { - console.log("end"); - console.log(err); if (err) { return done(err); }