REST Service for POPCORN - ILIAS
alex
2025-07-07 1208e72d1a24c8493296ac9853754d13368e6e1e
lib/db.js
@@ -430,8 +430,8 @@
       UPDATE ${database}.ut_lp_marks ulm
       SET status         = ${status},
           status_changed = "${date}"
       WHERE ulm.usr_id = 31793
         AND ulm.obj_id = 32212;
       WHERE ulm.usr_id = ${userId}
         AND ulm.obj_id = ${courseId};
   `
   const q2 = `
       UPDATE ${database}.obj_members om
@@ -439,10 +439,12 @@
       WHERE om.usr_id = ${userId}
         AND om.obj_id = ${courseId};
   `
   const [results1] = await pool.query(q1)
   const [results2] = await pool.query(q2)
   const {affectedRows: affectedRows1} = results1
   const {affectedRows: affectedRows2} = results2
   if (affectedRows1 && affectedRows2) {
      return {status: "ok"}
   }