Skip to content

Commit

Permalink
Merge branch 'master' into fix-ios-sdk-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
olgahaha authored Apr 3, 2024
2 parents e332af6 + f8af147 commit 45244e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/shared/actions/service/actions.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClient } from '@angular/common/http';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { defer, forkJoin, of } from 'rxjs';
import { map } from 'rxjs/operators';
Expand All @@ -12,9 +12,13 @@ export class ActionsService {
constructor(private readonly httpClient: HttpClient) {}

getActions$() {
const params = new HttpParams({ fromObject: { sort_field: 'index' } });
return defer(() =>
this.httpClient
.get<GetActionsResponse<Action>>(`${BUBBLE_DB_URL}/api/1.1/obj/action`)
.get<GetActionsResponse<Action>>(
`${BUBBLE_DB_URL}/api/1.1/obj/action`,
{ params }
)
.pipe(map(response => response.response.results))
);
}
Expand Down

0 comments on commit 45244e5

Please sign in to comment.