don't use the _id prop of the app metadata.
This commit is contained in:
parent
c6e9dd7a68
commit
30f6238d45
|
@ -8,12 +8,12 @@ exports.fetch = async ctx => {
|
||||||
const promises = []
|
const promises = []
|
||||||
for (let app of apps) {
|
for (let app of apps) {
|
||||||
// use dev app IDs
|
// use dev app IDs
|
||||||
promises.push(getAllRoles(app._id))
|
promises.push(getAllRoles(app.appId))
|
||||||
}
|
}
|
||||||
const roles = await Promise.all(promises)
|
const roles = await Promise.all(promises)
|
||||||
const response = {}
|
const response = {}
|
||||||
for (let app of apps) {
|
for (let app of apps) {
|
||||||
const deployedAppId = getDeployedAppID(app._id)
|
const deployedAppId = getDeployedAppID(app.appId)
|
||||||
response[deployedAppId] = {
|
response[deployedAppId] = {
|
||||||
roles: roles.shift(),
|
roles: roles.shift(),
|
||||||
name: app.name,
|
name: app.name,
|
||||||
|
|
Loading…
Reference in New Issue