Skip to content

Commit

Permalink
feat: add zone functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoerpenbeck committed Jun 25, 2024
1 parent 3890a38 commit 20ef795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fft-api/zone/fftZoneService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export class FftZoneService {
}
}

public async getAll(facilityId: string, size = 25): Promise<Zone> {
public async getAll(facilityId: string, size = 25): Promise<Zone[]> {
try {
return await this.apiClient.get<Zone>(`facilities/${facilityId}/${this.PATH}`, {
return await this.apiClient.get<Zone[]>(`facilities/${facilityId}/${this.PATH}`, {
...(size && { size: size.toString() }),
});
} catch (error) {
Expand Down

0 comments on commit 20ef795

Please sign in to comment.