File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ export class App {
200
200
201
201
// Get component credential via name
202
202
this . app . get ( '/api/v1/components-credentials/:name' , ( req : Request , res : Response ) => {
203
- if ( ! req . params . name . includes ( '&' ) ) {
203
+ if ( ! req . params . name . includes ( '& ' ) ) {
204
204
if ( Object . prototype . hasOwnProperty . call ( this . nodesPool . componentCredentials , req . params . name ) ) {
205
205
return res . json ( this . nodesPool . componentCredentials [ req . params . name ] )
206
206
} else {
207
207
throw new Error ( `Credential ${ req . params . name } not found` )
208
208
}
209
209
} else {
210
210
const returnResponse = [ ]
211
- for ( const name of req . params . name . split ( '&' ) ) {
211
+ for ( const name of req . params . name . split ( '& ' ) ) {
212
212
if ( Object . prototype . hasOwnProperty . call ( this . nodesPool . componentCredentials , name ) ) {
213
213
returnResponse . push ( this . nodesPool . componentCredentials [ name ] )
214
214
} else {
You can’t perform that action at this time.
0 commit comments