mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: order
This commit is contained in:
@@ -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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user