File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,11 @@ export class OrgProductController extends Controller {
107
107
} ;
108
108
} ) ;
109
109
110
+ const ctx = this . keystone . createContext ( request ) ;
111
+
110
112
const promises = output . filter ( ( env :any ) => env . product . namespace ) . map ( async ( env : any ) => {
111
113
const nsAttributes = await getNamespaceAttributes (
114
+ ctx ,
112
115
env . product . namespace
113
116
) ;
114
117
env . namespace = nsAttributes ;
@@ -204,8 +207,8 @@ const list = gql`
204
207
` ;
205
208
206
209
207
- async function getNamespaceAttributes ( ns : string ) : Promise < OrgNamespace > {
208
- const prodEnv = await getGwaProductEnvironment ( this . keystone . sudo ( ) , false ) ;
210
+ async function getNamespaceAttributes ( ctx : any , ns : string ) : Promise < OrgNamespace > {
211
+ const prodEnv = await getGwaProductEnvironment ( ctx , false ) ;
209
212
const envConfig = prodEnv . issuerEnvConfig ;
210
213
211
214
const svc = new NamespaceService ( envConfig . issuerUrl ) ;
You can’t perform that action at this time.
0 commit comments