From 30f6238d45c3719f453cff5454eb6f702da4964d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 17 May 2021 14:52:49 +0100 Subject: [PATCH] don't use the _id prop of the app metadata. --- packages/worker/src/api/controllers/admin/roles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/worker/src/api/controllers/admin/roles.js b/packages/worker/src/api/controllers/admin/roles.js index 74b8fd973c..8ef45d3765 100644 --- a/packages/worker/src/api/controllers/admin/roles.js +++ b/packages/worker/src/api/controllers/admin/roles.js @@ -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,