Skip to content

Commit 5b30c27

Browse files
committed
changing paths
1 parent 588b40a commit 5b30c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

registry-ws-client/src/main/java/org/gbif/registry/ws/client/OccurrenceDownloadWsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public PagingResponse<DatasetOccurrenceDownloadUsage> listDatasetUsages(
7979

8080
@Override
8181
public Map<Integer,Map<Integer,Long>> getMonthlyStats(@Nullable Date fromDate, @Nullable Date toDate, @Nullable Country country) {
82-
return statsServiceCall(fromDate, toDate, country, "monthlyStats");
82+
return statsServiceCall(fromDate, toDate, country, "stats");
8383
}
8484

8585
@Override
8686
public Map<Integer, Map<Integer, Long>> getDownloadRecordsHostedByCountry(@Nullable Date fromDate, @Nullable Date toDate, @Nullable Country country) {
87-
return statsServiceCall(fromDate, toDate, country, "downloadedRecords");
87+
return statsServiceCall(fromDate, toDate, country, "stats/downloadedRecords");
8888
}
8989

9090
private Map<Integer,Map<Integer,Long>> statsServiceCall(@Nullable Date fromDate, @Nullable Date toDate, @Nullable Country country, String path) {

0 commit comments

Comments
 (0)