lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
f7fe86aad0
Modificáronse 1 ficheiros con 5 adicións e 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 = [