Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 31, 2020
1 parent bb22418 commit 6924a22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/posts/queue.js
Expand Up @@ -97,7 +97,9 @@ module.exports = function (Posts) {
topics.checkContent(data.content);
if (type === 'topic') {
topics.checkTitle(data.title);
await topics.validateTags(data.tags);
if (data.tags) {
await topics.validateTags(data.tags);
}
}

const [canPost] = await Promise.all([
Expand Down

0 comments on commit 6924a22

Please sign in to comment.