fix: order

v1.18.x
Barış Soner Uşaklı 4 years ago
parent d3c04afb98
commit 9ab4fb412b

@ -89,8 +89,8 @@ module.exports = function (Topics) {
return; return;
} }
newTagName = utils.cleanUpTag(newTagName, meta.config.maximumTagLength); newTagName = utils.cleanUpTag(newTagName, meta.config.maximumTagLength);
await Topics.createEmptyTag(newTagName);
const targetExists = await db.isSortedSetMember('tags:topic:count', newTagName); const targetExists = await db.isSortedSetMember('tags:topic:count', newTagName);
await Topics.createEmptyTag(newTagName);
const tagData = await db.getObject('tag:' + tag); const tagData = await db.getObject('tag:' + tag);
if (tagData && !targetExists) { if (tagData && !targetExists) {
await db.setObject('tag:' + newTagName, { await db.setObject('tag:' + newTagName, {

Loading…
Cancel
Save