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

+ 5 - 0
pbl.js

@@ -919,7 +919,12 @@ router.route('/addWorkNew3').all((req, res, next) => {
     }
 
 });
+router.route('/addInviteCode').all((req, res, next) => {
+    if (req.body[0]) {
+        delCourseInviteCode(ret[0][0].courseId,ret[0][0].inviteCode)
+    }
 
+});
 function delCourseInviteCode(courseId, inviteCode){
     let _courseId = courseId;
     var _userdata = [