Skip to content

Commit 4184b41

Browse files
authored
✨ Delete Multiple Elections (#418)
Parent issue: sequentech/meta#229
1 parent 7a4f665 commit 4184b41

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

avRegistration/auth-method-service.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,12 @@ angular.module('avRegistration')
778778
return $http.post(url, data);
779779
};
780780

781+
authmethod.deleteElections = function(electionIds) {
782+
var url = backendUrl + 'auth-event/delete-elections/';
783+
var data = {"election-ids": electionIds};
784+
return $http.post(url, data);
785+
};
786+
781787
authmethod.unpublishResults = function(eid) {
782788
var url = backendUrl + 'auth-event/'+eid+'/unpublish-results/';
783789
var data = {};

dist/appCommon-v10.5.2.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
328328
}, authmethod.allowTally = function(url) {
329329
url = backendUrl + "auth-event/" + url + "/allow-tally/";
330330
return $http.post(url, {});
331+
}, authmethod.deleteElections = function(data) {
332+
var url = backendUrl + "auth-event/delete-elections/", data = {
333+
"election-ids": data
334+
};
335+
return $http.post(url, data);
331336
}, authmethod.unpublishResults = function(url) {
332337
url = backendUrl + "auth-event/" + url + "/unpublish-results/";
333338
return $http.post(url, {});

0 commit comments

Comments
 (0)