REST Service for POPCORN - ILIAS
alex
5 hours ago b8c5990374e828bea9de4b057709a07d230da6ab
lib/libLp.js
@@ -17,7 +17,6 @@
    const grouped = _.groupBy(data, "usr_id")
    const ret = []
    for (const items of Object.values(grouped)) {
        // console.log(items)
        if (!items.length) continue
        const unterStatusse = items.map(it => it.status)
@@ -30,7 +29,6 @@
        }
        ret.push(newItem)
    }
    console.log(ret)
    return ret
}
@@ -57,7 +55,7 @@
    }
    // Fall 4: wenn eines in Bearbeitung -> in Bearbeitung // 0,1,0 2,1,2
    if (unterStatusse.some(u => u === 1)) {
    if (unterStatusse.some(u => u === 1 || u === 2)) {
        return 1
    }