summaryrefslogtreecommitdiffstats
path: root/interface/js/app/stats.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-25 10:42:02 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-25 10:42:02 +0300
commitd8977873d6e6552b0290c0171c6908c6c45bb24f (patch)
treef04c0820f6dc39e2c6567e86933c5350661391f5 /interface/js/app/stats.js
parent6d95ea817c68b5fd507ec85b63ce1d7f8b4295e5 (diff)
downloadrspamd-d8977873d6e6552b0290c0171c6908c6c45bb24f.tar.gz
rspamd-d8977873d6e6552b0290c0171c6908c6c45bb24f.zip
[WebUI] Refactor query functions into one
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r--interface/js/app/stats.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index 8ef7e25d6..79e7cd6b5 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -171,7 +171,7 @@ define(["jquery", "d3pie", "humanize"],
// Public API
var ui = {
statWidgets: function (rspamd, graphs, checked_server) {
- rspamd.queryNeighbours("/auth", function (neighbours_status) {
+ rspamd.query("/auth", function (neighbours_status) {
var neighbours_sum = {
version: neighbours_status[0].data.version,
auth: "ok",
@@ -227,7 +227,7 @@ define(["jquery", "d3pie", "humanize"],
rspamd.alertMessage("alert-error", "Cannot receive stats data from: " +
serv.name + ", error: " + errorThrown);
}
- });
+ }, "GET", {}, {}, {}, true);
},
};