Skip to content

Commit fb58537

Browse files
committed
bug to retreive applications : flatMap array of applications
1 parent df055cd commit fb58537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secrets/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ router.get('/manage-secrets/environments/:environmentName/applications', checkAu
179179
res.send(readConfiguration().filter(env => env.environment === environmentName ).map(environment => {
180180
return environment.applications.map(app => app.name);
181181
}
182-
));
182+
).flatMap(app => app));
183183
return ;
184184
});
185185
router.get('/manage-secrets/environments/:environmentName/applications/:applicationName', checkAuthorization, function(req,res){

0 commit comments

Comments
 (0)