Update index.js
Browse files
index.js
CHANGED
@@ -178,7 +178,7 @@ app.post("/api/v1/debug/connect", async (req, res) => {
|
|
178 |
const existingUser = await collection.findOne({ owner: userIdNumber });
|
179 |
const existingUserKey = await collection.findOne({ key: apikeyCheck });
|
180 |
|
181 |
-
if (!existingUser
|
182 |
return res.status(200).json({
|
183 |
message: "API key disconnected",
|
184 |
is_connect: false
|
|
|
178 |
const existingUser = await collection.findOne({ owner: userIdNumber });
|
179 |
const existingUserKey = await collection.findOne({ key: apikeyCheck });
|
180 |
|
181 |
+
if (!existingUser || !existingUserKey) {
|
182 |
return res.status(200).json({
|
183 |
message: "API key disconnected",
|
184 |
is_connect: false
|