added a function to wipe all pending actions for dead processes, consent module now does this on close
This commit is contained in:
@@ -44,6 +44,7 @@ end
|
||||
-- function to delete a process, called when process finishes
|
||||
function modpol.modules.consent:delete()
|
||||
local process_org = modpol.orgs.get_org(self.org_id)
|
||||
process_org:wipe_pending_actions(self.id)
|
||||
process_org.processes[self.id] = "deleted"
|
||||
modpol.ocutil.log('Deleted process #' .. self.id)
|
||||
end
|
||||
@@ -90,8 +91,4 @@ function modpol.modules.consent:update_status()
|
||||
else
|
||||
modpol.ocutil.log('Waiting for more votes...')
|
||||
end
|
||||
end
|
||||
|
||||
function modpol.modules.consent.pending_processes()
|
||||
|
||||
end
|
Reference in New Issue
Block a user