Browse Source

🐞 fix: fix bugs

Pchen. 1 month ago
parent
commit
3b9b2a3877
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Lepao/Account/AddAccount.js

+ 1 - 1
apis/Lepao/Account/AddAccount.js

@@ -38,7 +38,7 @@ class AddAccount extends API {
     async onRequest(req, res) {
         let { uuid, session, student_num, email, id, area, auto_time, auto_run, target_count, auto_day, notice_type, notes } = req.body
 
-        if ([uuid, session, student_num, email, auto_time, target_count, auto_day].some(value => value === '' || value === null || value === undefined))
+        if ([uuid, session, student_num, auto_time, target_count, auto_day].some(value => value === '' || value === null || value === undefined))
             return res.json({
                 ...BaseStdResponse.MISSING_PARAMETER
             })