Update database/database.js
Browse files- database/database.js +0 -2
database/database.js
CHANGED
@@ -99,9 +99,7 @@ class Database {
|
|
99 |
const update = { $set: { blocked: true } };
|
100 |
|
101 |
const FindIp = await collection.findOne(filter);
|
102 |
-
|
103 |
if (FindIp) {
|
104 |
-
console.log("IP found in the database:", FindIp);
|
105 |
return FindIp;
|
106 |
} else {
|
107 |
console.log("IP not found in the database");
|
|
|
99 |
const update = { $set: { blocked: true } };
|
100 |
|
101 |
const FindIp = await collection.findOne(filter);
|
|
|
102 |
if (FindIp) {
|
|
|
103 |
return FindIp;
|
104 |
} else {
|
105 |
console.log("IP not found in the database");
|