Skip to content
Snippets Groups Projects
Commit 366917bf authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add size attribute to object generated in parseParams

Related: simcaq/SCRUM#18
parent 1d54fe24
No related branches found
No related tags found
1 merge request!18Issue 18
Pipeline #
...@@ -53,8 +53,10 @@ function parseParams(queryParam, arr) { ...@@ -53,8 +53,10 @@ function parseParams(queryParam, arr) {
for (let i = 0; i < intersection.length; ++i) { for (let i = 0; i < intersection.length; ++i) {
req[queryParam][intersection[i]] = obj[intersection[i]]; req[queryParam][intersection[i]] = obj[intersection[i]];
} }
req[queryParam].size = intersection.length;
} else { } else {
req[queryParam] = obj; req[queryParam] = obj;
req[queryParam].size = Object.keys(obj).length;
} }
} }
next(); next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment