REST Service for POPCORN - ILIAS
alex
2025-06-17 98aaeb1328c9f72ead37ff5fc20e97d59bbe4e7e
lib/libIlias.js
@@ -25,11 +25,12 @@
   let url2 = `${url}?${sp.toString()}`
   const res = await fetch(url2, {method: "DELETE"})
   const data = await res.json()
   // TODO update search index
   return data //
}
async function deleteAllUsers () {
   const users = await db.getUsers()
   const {data: users} = await db.getUsers(0, 100000)
   const res = {
      command: "deleteAllUsers",
      start: new Date(),
@@ -45,6 +46,7 @@
   }
   res.end = new Date()
   res.duration = res.end - res.start
   // TODO update search index
   return res
}