Fixed bug in perm check middleware caused by last refactor

This commit is contained in:
rainbow napkin 2024-12-15 21:41:59 -05:00
parent 5ad1c99ead
commit 805387b3da
19 changed files with 30 additions and 26 deletions

View file

@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
//Local Imports
const channelModel = require('../../schemas/channel/channelSchema');
const userModel = require('../../schemas/userSchema');
const {userModel} = require('../../schemas/userSchema');
const loggerUtils = require('../../utils/loggerUtils');
const activeChannel = require('./activeChannel');
const chatHandler = require('./chatHandler');

View file

@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
//local imports
const commandPreprocessor = require('./commandPreprocessor');
const loggerUtils = require('../../utils/loggerUtils');
const userModel = require('../../schemas/userSchema');
const {userModel} = require('../../schemas/userSchema');
module.exports = class{
constructor(server){

View file

@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
//Local Imports
const tokeCommandModel = require('../../schemas/tokebot/tokeCommandSchema');
const userModel = require('../../schemas/userSchema');
const {userModel} = require('../../schemas/userSchema');
const statModel = require('../../schemas/statSchema');
const statSchema = require('../../schemas/statSchema');