Update middleware/midware.js
Browse files- middleware/midware.js +0 -1
middleware/midware.js
CHANGED
@@ -13,7 +13,6 @@ const authenticateApiKeyPremium = async (req, res, next) => {
|
|
13 |
|
14 |
try {
|
15 |
const keyData = await ApiKey.findOne({ key: apiKey });
|
16 |
-
console.log("test mongoose", keyData);
|
17 |
if (!keyData) {
|
18 |
return res.status(403).json({ error: 'Invalid or non-premium API Key' });
|
19 |
}
|
|
|
13 |
|
14 |
try {
|
15 |
const keyData = await ApiKey.findOne({ key: apiKey });
|
|
|
16 |
if (!keyData) {
|
17 |
return res.status(403).json({ error: 'Invalid or non-premium API Key' });
|
18 |
}
|