poeti8 6 yıl önce
ebeveyn
işleme
9050dc9f26
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      .example.env
  2. 1 1
      server/controllers/validateBodyController.js

+ 1 - 1
.example.env

@@ -18,7 +18,7 @@ REDIS_PASSWORD=
 # The daily limit for each user
 USER_LIMIT_PER_DAY=50
 
-# Create a cooldown for non-users in minutes
+# Create a cooldown for non-logged in users in minutes
 # Set 0 to disable
 NON_USER_COOLDOWN=0
 

+ 1 - 1
server/controllers/validateBodyController.js

@@ -131,7 +131,7 @@ exports.ipCooldownCheck = async (req, res, next) => {
     const timeToWait = cooldonwConfig - differenceInMinutes(new Date(), cooldownDate);
     return res
       .status(400)
-      .json({ error: `Non-users are limited. Wait ${timeToWait} minutes or log in.` });
+      .json({ error: `Non-logged in users are limited. Wait ${timeToWait} minutes or log in.` });
   }
   next();
 };