Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 2d85c7f

Browse files
committed
perPage for forBoundry and forPoint
1 parent f263bb7 commit 2d85c7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proxy/GeoResourceProxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ export default class GeoResourceProxy extends ResourceProxy {
9393
throw new TypeError(`Invalid resource limit ${limit}, maximum allowed is ${RequestParameters.maxPerPage}`);
9494
}
9595

96-
const url = `${this.new().baseUrl}/for-boundary`;
96+
const url = `${this.new().baseUrl}/for-boundary?per_page=limit`;
9797

98-
const { data: { data: result } } = await this.api.axios.post(url, { limit, boundary });
98+
const { data: { data: result } } = await this.api.axios.post(url, { boundary });
9999

100100
return result.map(r => this.new(r));
101101
}

0 commit comments

Comments
 (0)