@idsoftsource/initial-process 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -840,8 +840,18 @@ class RolesService {
|
|
|
840
840
|
if (!query)
|
|
841
841
|
return params;
|
|
842
842
|
Object.keys(query).forEach(key => {
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
const value = query[key];
|
|
844
|
+
if (value === null || value === undefined)
|
|
845
|
+
return;
|
|
846
|
+
// ✅ If value is array → append each value
|
|
847
|
+
if (Array.isArray(value)) {
|
|
848
|
+
value.forEach((item) => {
|
|
849
|
+
params = params.append(key, item);
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
// ✅ Normal primitive value
|
|
853
|
+
else {
|
|
854
|
+
params = params.set(key, value);
|
|
845
855
|
}
|
|
846
856
|
});
|
|
847
857
|
return params;
|