Browse Source

Removed limit argument in logs query if it's not needed.

master
Gisle Aune 6 years ago
parent
commit
9b7d182955
  1. 5
      rpdata/api/LogHeader.js

5
rpdata/api/LogHeader.js

@ -89,6 +89,11 @@ const logHeaderApi = {
* @returns {Promise<LogHeader[]>} * @returns {Promise<LogHeader[]>}
*/ */
list(filter = {}) { list(filter = {}) {
filter = Object.assign({}, filter)
if (filter.limit != null && filter.limit <= 0) {
delete filter.limit
}
return query(` return query(`
query LogHeaders($filter: LogsFilter) { query LogHeaders($filter: LogsFilter) {
headers: logs(filter:$filter) { headers: logs(filter:$filter) {

Loading…
Cancel
Save