REST Service for POPCORN - ILIAS
alex
2025-06-22 380ecd93c086d23898f11d508a5e14b234d0e1a7
lib/db.js
@@ -40,6 +40,7 @@
   getKursTeilnehmer,
   getKursTeilnehmerCount,
   getUdf,
}
/////////////////////////////////////////////////////////////////////////
@@ -350,3 +351,12 @@
   const [results] = await pool.query(q)
   return results
}
/////// UDF ////////////////////////////////////////////////////////////////
async function getUdf() {
   const pool = await poolP
   const q = `SELECT field_id, field_name, field_type from ${database}.udf_definition;`
   const [results] = await pool.query(q)
   return results
}