Skip to content

Commit a483854

Browse files
committed
Revert "chore: remove append from native and web"
This reverts commit ca54e57.
1 parent ca54e57 commit a483854

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

templates/react-native/src/services/template.ts.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export class {{ service.name | caseUcfirst }} extends Service {
7878
{% endfor %}
7979
{% endfor %}
8080
{% endif %}
81+
82+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
83+
uri.searchParams.append(key, value);
84+
}
8185
{% endif %}
8286
{% if method.type == 'webAuth' %}
8387
return uri;

templates/web/src/services/template.ts.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export class {{ service.name | caseUcfirst }} {
7878
{%~ endfor %}
7979
{%~ endfor %}
8080
{%~ endif %}
81+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
82+
uri.searchParams.append(key, value);
83+
}
8184
{%~ endif %}
8285

8386
{%~ if method.type == 'webAuth' %}

0 commit comments

Comments
 (0)