randydev commited on
Commit
6aa9f83
·
verified ·
1 Parent(s): 3297c69

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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 && !existingUserKey) {
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