mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
feat(writeapi): abstracted ajax calls out to new api module
This commit is contained in:
@@ -24,7 +24,7 @@ Categories.update = async (req, res) => {
|
||||
|
||||
Categories.delete = async (req, res) => {
|
||||
const name = await categories.getCategoryField(req.params.cid, 'name');
|
||||
await Categories.purge(req.params.cid, req.user.uid);
|
||||
await categories.purge(req.params.cid, req.user.uid);
|
||||
await events.log({
|
||||
type: 'category-purge',
|
||||
uid: req.user.uid,
|
||||
|
||||
Reference in New Issue
Block a user