randydev commited on
Commit
8e0d35e
·
verified ·
1 Parent(s): 2874b80

Update plugins/unblockip.js

Browse files
Files changed (1) hide show
  1. plugins/unblockip.js +1 -5
plugins/unblockip.js CHANGED
@@ -7,11 +7,7 @@ UnblockIpRoutes.get('/api/v1/unblock-ip', async (req, res) => {
7
  try {
8
  const ip = req.query.ip;
9
  const results = await dbClient.UnblockedIp(ip);
10
- if (results) {
11
- res.json({ message: "successfully ip unbanned"});
12
- } else {
13
- res.status(404).json({ error: "No result found." });
14
- }
15
  } catch (error) {
16
  res.status(500).json({ error: error.message });
17
  }
 
7
  try {
8
  const ip = req.query.ip;
9
  const results = await dbClient.UnblockedIp(ip);
10
+ res.json({ message: "successfully ip unbanned"});
 
 
 
 
11
  } catch (error) {
12
  res.status(500).json({ error: error.message });
13
  }