mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26: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,
|
||||
...data,
|
||||
});
|
||||
return result.category;
|
||||
return { ...result.category };
|
||||
};
|
||||
|
||||
Categories.getAllCidsFromSet = async function (key) {
|
||||
|
||||
Reference in New Issue
Block a user