Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ export const DEFAULT_AGENT = {
SB_Agent: 'SB-CLI',
SB_Agent_Version: process.env.npm_package_version || '3.0.0'
}

export const PAGINATION = {
datasource_entries: 1000,
}
2 changes: 1 addition & 1 deletion src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default {
const client = this.getClient()

return client
.get(this.getPath(`datasource_entries?datasource_id=${id}`))
.get(this.getPath(`datasource_entries?datasource_id=${id}&per_page=${PAGINATION.datasource_entries}`))
.then(data => data.data.datasource_entries || [])
.catch(err => Promise.reject(err))
},
Expand Down