mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
fix: remove await from category update federation call
This commit is contained in:
@@ -65,7 +65,7 @@ categoriesAPI.update = async function (caller, data) {
|
|||||||
const payload = {};
|
const payload = {};
|
||||||
payload[cid] = values;
|
payload[cid] = values;
|
||||||
await categories.update(payload);
|
await categories.update(payload);
|
||||||
await activitypubApi.update.category(caller, { cid });
|
activitypubApi.update.category(caller, { cid }); // background
|
||||||
};
|
};
|
||||||
|
|
||||||
categoriesAPI.delete = async function (caller, { cid }) {
|
categoriesAPI.delete = async function (caller, { cid }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user