Skip to content

Commit 28b99c4

Browse files
committed
feat: add filter array to url options
1 parent dc095b3 commit 28b99c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

srcs/url/appendOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: ibertran <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2024/12/05 13:23:00 by ibertran #+# #+# */
9-
/* Updated: 2024/12/09 19:05:13 by ibertran ### ########lyon.fr */
9+
/* Updated: 2024/12/15 03:59:43 by ibertran ### ########lyon.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -56,7 +56,7 @@ function appendOptions(url, options) {
5656
if (options.filter) {
5757
for (const [key, value] of Object.entries(options.filter)) {
5858
url.indexOf("?") > 1 ? (url += "&") : (url += "?");
59-
url += `filter[${key}]=${value}`;
59+
url += `filter[${key}]=${value.lenth ? value.join(',') : value}`;
6060
}
6161
}
6262
if (options.range) {

0 commit comments

Comments
 (0)