Skip to content

Commit

Permalink
add bit more to comment description
Browse files Browse the repository at this point in the history
  • Loading branch information
csuwildcat committed Apr 26, 2024
1 parent cac7278 commit 43c89b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class HttpApi {
for (const param in req.query) {
const keys = param.split('.');
const lastKey = keys.pop();
// Set up the object tree
// Set up the object tree, if it isn't already present
const lastLevel = keys.reduce((obj, key) => obj[key] = obj[key] || {}, options)
lastLevel[lastKey] = req.query[param];
}
Expand Down

0 comments on commit 43c89b4

Please sign in to comment.