From 9d43734cd05bc979d04c332a52b498cec3aa06a8 Mon Sep 17 00:00:00 2001 From: Findeton Date: Wed, 13 Nov 2024 20:16:48 +0800 Subject: [PATCH] wip --- 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, {});