REST Service for POPCORN - ILIAS
alex
2025-06-22 56c4f060543542692accdbfab7cb1fff82a7f40f
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
}