From 200122deeece8d166c80d4033a3c3b412fec7d7e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 5 Jul 2020 10:49:30 -0700 Subject: [PATCH] get all mailing lists in a single shot for now --- src/js/client.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/js/client.js b/src/js/client.js index 8574b01cf..297cfdcc8 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -2202,7 +2202,14 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }; Client.prototype.listMailingLists = function (domain, callback) { - get('/api/v1/mail/' + domain + '/lists', null, function (error, data, status) { + var config = { + params: { + page: 1, + per_page: 1000 + } + }; + + get('/api/v1/mail/' + domain + '/lists', config, function (error, data, status) { if (error) return callback(error); if (status !== 200) return callback(new ClientError(status, data));