Skip to content

Commit

Permalink
Merge pull request #808 from bcgov/oleks
Browse files Browse the repository at this point in the history
Fixed API call for count
  • Loading branch information
ychung-mot authored Nov 21, 2024
2 parents 5c4427f + ee4206b commit dbb3303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/common/services/listing-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class ListingDataService {
}

getHostListingsCount(primaryHostNm: string): Observable<{ primaryHostNm: string, hasMultipleProperties: boolean }> {
return this.httpClient.get<number>(`${environment.API_HOST}/rentallistings/grouped/count?hostName=${primaryHostNm}`)
return this.httpClient.get<number>(`${environment.API_HOST}/rentallistings/host/count?hostName=${primaryHostNm}`)
.pipe(map(count => ({ primaryHostNm, hasMultipleProperties: count > 1 })));
}

Expand Down

0 comments on commit dbb3303

Please sign in to comment.