Skip to content

Commit

Permalink
Fix post editing
Browse files Browse the repository at this point in the history
  • Loading branch information
a-lexxx authored and tadatuta committed Dec 17, 2017
1 parent 3053cf9 commit d18f17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/controllers/forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function _getData(req, res, dataType) {
const type = req.query.type;

return (dataType === 'issue' ?
gh.getIssue(id, { token }) :
gh.getIssue(id, token) :
gh.getComment(id, { token })
)
.then(response => {
Expand Down
2 changes: 1 addition & 1 deletion server/models/gh.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function updateComment(reqId, data, token) {
}

function updateIssue(reqId, data, token) {
got.patch(`${issuesRequestUrl}/${reqId}`, {
return got.patch(`${issuesRequestUrl}/${reqId}`, {
body: data,
token
});
Expand Down

0 comments on commit d18f17a

Please sign in to comment.