Started global user bans (DB schema/admin panel)

This commit is contained in:
rainbow napkin 2024-11-28 17:37:26 -05:00
parent 5c30508e96
commit f996018ea5
20 changed files with 339 additions and 15 deletions

View file

@ -18,7 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
const {validationResult, matchedData} = require('express-validator');
//local imports
const userModel = require('../../../schemas/userSchema');
const {userModel} = require('../../../schemas/userSchema');
const accountUtils = require('../../../utils/sessionUtils.js');
const {exceptionHandler} = require('../../../utils/loggerUtils.js');

View file

@ -18,7 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
const {validationResult, matchedData} = require('express-validator');
//local imports
const userModel = require('../../../schemas/userSchema');
const {userModel} = require('../../../schemas/userSchema');
const {exceptionHandler} = require('../../../utils/loggerUtils.js');
module.exports.post = async function(req, res){

View file

@ -18,7 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
const {validationResult, matchedData} = require('express-validator');
//local imports
const userModel = require('../../../schemas/userSchema');
const {userModel} = require('../../../schemas/userSchema');
const accountUtils = require('../../../utils/sessionUtils.js');
const {exceptionHandler} = require('../../../utils/loggerUtils.js');