mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fix: getCategoryById to return shallow clone of object
This commit is contained in:
@@ -64,7 +64,7 @@ Categories.getCategoryById = async function (data) {
|
|||||||
category: category,
|
category: category,
|
||||||
...data,
|
...data,
|
||||||
});
|
});
|
||||||
return result.category;
|
return { ...result.category };
|
||||||
};
|
};
|
||||||
|
|
||||||
Categories.getAllCidsFromSet = async function (key) {
|
Categories.getAllCidsFromSet = async function (key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user