mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: unnecessary parseInt in post purge api method
This commit is contained in:
@@ -216,7 +216,7 @@ async function deleteOrRestoreTopicOf(command, pid, caller) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
postsAPI.purge = async function (caller, data) {
|
postsAPI.purge = async function (caller, data) {
|
||||||
if (!data || !parseInt(data.pid, 10)) {
|
if (!data || !data.pid) {
|
||||||
throw new Error('[[error:invalid-data]]');
|
throw new Error('[[error:invalid-data]]');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user