Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Apr 26, 2024
1 parent e9df15b commit 5e77608
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ postsAPI.edit = async function (caller, data) {
newTitle: validator.escape(String(editResult.topic.title)),
});
}
const postObj = await posts.getPostSummaryByPids([editResult.post.pid], caller.uid, { extraFields: ['edited']});
const postObj = await posts.getPostSummaryByPids([editResult.post.pid], caller.uid, { extraFields: ['edited'] });
const returnData = { ...postObj[0], ...editResult.post };
returnData.topic = { ...postObj[0].topic, ...editResult.post.topic };

Expand Down
1 change: 0 additions & 1 deletion src/controllers/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const nconf = require('nconf');
const qs = require('querystring');
const validator = require('validator');

const db = require('../database');
const user = require('../user');
const meta = require('../meta');
const topics = require('../topics');
Expand Down

0 comments on commit 5e77608

Please sign in to comment.