diff --git a/frontend/src/app/common/services/listing-data.service.ts b/frontend/src/app/common/services/listing-data.service.ts index b054ccb8..3a40eaf0 100644 --- a/frontend/src/app/common/services/listing-data.service.ts +++ b/frontend/src/app/common/services/listing-data.service.ts @@ -148,7 +148,7 @@ export class ListingDataService { } getHostListingsCount(primaryHostNm: string): Observable<{ primaryHostNm: string, hasMultipleProperties: boolean }> { - return this.httpClient.get(`${environment.API_HOST}/rentallistings/grouped/count?hostName=${primaryHostNm}`) + return this.httpClient.get(`${environment.API_HOST}/rentallistings/host/count?hostName=${primaryHostNm}`) .pipe(map(count => ({ primaryHostNm, hasMultipleProperties: count > 1 }))); }