From 4184b413f063dea55dd1b2f698c4ebe8c4fee388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Robles?= Date: Thu, 21 Nov 2024 08:53:05 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Delete=20Multiple=20Elections=20(#4?= =?UTF-8?q?18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/229 --- avRegistration/auth-method-service.js | 6 ++++++ dist/appCommon-v10.5.2.js | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/avRegistration/auth-method-service.js b/avRegistration/auth-method-service.js index 21924fd8..43b1245d 100644 --- a/avRegistration/auth-method-service.js +++ b/avRegistration/auth-method-service.js @@ -778,6 +778,12 @@ angular.module('avRegistration') return $http.post(url, data); }; + authmethod.deleteElections = function(electionIds) { + var url = backendUrl + 'auth-event/delete-elections/'; + var data = {"election-ids": electionIds}; + return $http.post(url, data); + }; + authmethod.unpublishResults = function(eid) { var url = backendUrl + 'auth-event/'+eid+'/unpublish-results/'; var data = {}; diff --git a/dist/appCommon-v10.5.2.js b/dist/appCommon-v10.5.2.js index cbe36355..83690061 100644 --- a/dist/appCommon-v10.5.2.js +++ b/dist/appCommon-v10.5.2.js @@ -328,6 +328,11 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist }, authmethod.allowTally = function(url) { url = backendUrl + "auth-event/" + url + "/allow-tally/"; return $http.post(url, {}); + }, authmethod.deleteElections = function(data) { + var url = backendUrl + "auth-event/delete-elections/", data = { + "election-ids": data + }; + return $http.post(url, data); }, authmethod.unpublishResults = function(url) { url = backendUrl + "auth-event/" + url + "/unpublish-results/"; return $http.post(url, {});