From 3e63a3266954fa4eb77dd47d5754935ced7cd67e Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 26 Aug 2024 16:57:30 -0700 Subject: [PATCH] Renamed variable --- Server/db/mongo/MongoDB.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/db/mongo/MongoDB.js b/Server/db/mongo/MongoDB.js index 8c1d97351..d6440ca12 100644 --- a/Server/db/mongo/MongoDB.js +++ b/Server/db/mongo/MongoDB.js @@ -17,8 +17,8 @@ const connect = async () => { const checkSuperadmin = async (req, res) => { try { - const admin = await UserModel.findOne({ role: "superadmin" }); - if (admin !== null) { + const superAdmin = await UserModel.findOne({ role: "superadmin" }); + if (superAdmin !== null) { return true; } return false;