Skip to content

Commit 3e6e0f9

Browse files
committed
fix sanitized &amp
1 parent bd4fb2c commit 3e6e0f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/server/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ export class App {
200200

201201
// Get component credential via name
202202
this.app.get('/api/v1/components-credentials/:name', (req: Request, res: Response) => {
203-
if (!req.params.name.includes('&')) {
203+
if (!req.params.name.includes('&')) {
204204
if (Object.prototype.hasOwnProperty.call(this.nodesPool.componentCredentials, req.params.name)) {
205205
return res.json(this.nodesPool.componentCredentials[req.params.name])
206206
} else {
207207
throw new Error(`Credential ${req.params.name} not found`)
208208
}
209209
} else {
210210
const returnResponse = []
211-
for (const name of req.params.name.split('&')) {
211+
for (const name of req.params.name.split('&')) {
212212
if (Object.prototype.hasOwnProperty.call(this.nodesPool.componentCredentials, name)) {
213213
returnResponse.push(this.nodesPool.componentCredentials[name])
214214
} else {

0 commit comments

Comments
 (0)