REST Service for POPCORN - ILIAS
alex
6 hours ago e43207c691a654a837f5f9ce9761c95746849c58
lib/libIlias.js
@@ -35,6 +35,7 @@
      token: iliastoken,
   })
   let url2 = `${url}?${sp.toString()}`
   console.log("pinging url", url2)
   const res = await fetch(url2, {method: "GET"})
   return await res.json() //
}
@@ -84,6 +85,7 @@
   const udfDef = await db.getUdf()
   const udfMap = _.keyBy(udfDef, "field_name")
   // console.dir(udfMap, {depth: null, colors: true, maxArrayLength: null})
   user.udf = _.mapKeys(user.udf, function (value, key) {
      return udfMap[key].field_id
   })