fix: tests

v1.18.x
Barış Soner Uşaklı 5 years ago
parent bb224184d8
commit 6924a22238

@ -97,8 +97,10 @@ module.exports = function (Posts) {
topics.checkContent(data.content);
if (type === 'topic') {
topics.checkTitle(data.title);
if (data.tags) {
await topics.validateTags(data.tags);
}
}
const [canPost] = await Promise.all([
privileges.categories.can(typeToPrivilege[type], cid, data.uid),

Loading…
Cancel
Save