mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
fix cb
This commit is contained in:
@@ -62,7 +62,7 @@ var async = require('async'),
|
|||||||
},
|
},
|
||||||
function (canPurge, next) {
|
function (canPurge, next) {
|
||||||
if (!canPurge) {
|
if (!canPurge) {
|
||||||
return callback(new Error('[[error:no-privileges]]'));
|
return next(new Error('[[error:no-privileges]]'));
|
||||||
}
|
}
|
||||||
cache.del(pid);
|
cache.del(pid);
|
||||||
posts.purge(pid, next);
|
posts.purge(pid, next);
|
||||||
|
|||||||
Reference in New Issue
Block a user