Skip to content

Commit

Permalink
fix: undefined call
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Nov 4, 2020
1 parent 0d80190 commit 518d4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/admin/manage/users.js
Expand Up @@ -177,7 +177,7 @@ define('admin/manage/users', [
}

Promise.all(uids.map(function (uid) {
return api.delete('/users/' + uid + '/ban');
return api.del('/users/' + uid + '/ban');
})).then(() => {
onSuccess('[[admin/manage/users:alerts.unban-success]]', '.ban', false);
});
Expand Down

0 comments on commit 518d4fa

Please sign in to comment.