1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Merge branch 'feature/draft-apps' into admin/user-management-ui

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-17 15:53:32 +02:00
commit 447a592ddb

View file

@ -8,12 +8,12 @@ exports.fetch = async ctx => {
const promises = []
for (let app of apps) {
// use dev app IDs
promises.push(getAllRoles(app._id))
promises.push(getAllRoles(app.appId))
}
const roles = await Promise.all(promises)
const response = {}
for (let app of apps) {
const deployedAppId = getDeployedAppID(app._id)
const deployedAppId = getDeployedAppID(app.appId)
response[deployedAppId] = {
roles: roles.shift(),
name: app.name,