lsc hace 2 años
padre
commit
b87d80c4df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pbl.js

+ 1 - 1
pbl.js

@@ -921,7 +921,7 @@ router.route('/addWorkNew3').all((req, res, next) => {
 });
 router.route('/addInviteCode').all((req, res, next) => {
     if (req.body[0]) {
-        delCourseInviteCode(req.body[0].courseId,req.body[0].inviteCode)
+        delCourseInviteCode(req.body[0].courseId,JSON.parse(req.body[0].inviteCode))
     }
 
 });