fix: remove await from category update federation call

This commit is contained in:
Julian Lam
2024-07-09 14:24:55 -04:00
parent 3c9337b730
commit bacbfba9bd

View File

@@ -65,7 +65,7 @@ categoriesAPI.update = async function (caller, data) {
const payload = {};
payload[cid] = values;
await categories.update(payload);
await activitypubApi.update.category(caller, { cid });
activitypubApi.update.category(caller, { cid }); // background
};
categoriesAPI.delete = async function (caller, { cid }) {