Skip to content

Commit

Permalink
fix: editing posts saving uncessary data
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 21, 2020
1 parent 654d583 commit e72fe25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posts/edit.js
Expand Up @@ -23,7 +23,7 @@ module.exports = function (Posts) {
if (!canEdit.flag) {
throw new Error(canEdit.message);
}
let postData = await Posts.getPostData(data.pid);
let postData = await db.getObject('post:' + data.pid);
if (!postData) {
throw new Error('[[error:no-post]]');
}
Expand Down

0 comments on commit e72fe25

Please sign in to comment.