From 61c17ccc5eb9e875e777fb7eea9c34db780f7a62 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 30 Jan 2023 19:39:45 -0800 Subject: [PATCH] update getAllAccessibleEnvironmentsOfWorkspace controller --- backend/src/controllers/v2/environmentController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/v2/environmentController.ts b/backend/src/controllers/v2/environmentController.ts index 4f028b1f7..7a0d5e1c5 100644 --- a/backend/src/controllers/v2/environmentController.ts +++ b/backend/src/controllers/v2/environmentController.ts @@ -250,8 +250,8 @@ export const getAllAccessibleEnvironmentsOfWorkspace = async ( return } else { accessibleEnvironments.push({ - environmentDetails: environment, - // readDenied: isReadBlocked, + name: environment.name, + slug: environment.slug, isWriteDenied: isWriteBlocked }) }