mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
Change board query to prevent board staff unban/upgrade/delete/etc global bans Dont add modlog entry for 0 amount ban edits
10 lines
216 B
JavaScript
10 lines
216 B
JavaScript
'use strict';
|
|
|
|
const { Bans } = require(__dirname+'/../../db/');
|
|
|
|
module.exports = async (req, res) => {
|
|
|
|
return Bans.denyAppeal(res.locals.bansBoard, req.body.checkedbans).then(result => result.modifiedCount);
|
|
|
|
};
|