moved type var into process table, this means that when loaded from memory, processes will properly reconnect to their classes

This commit is contained in:
Luke Miller 2021-06-06 15:43:24 -04:00
parent f837e99077
commit 56ab80d08e

View File

@ -1,14 +1,13 @@
modpol.modules = modpol.modules or {}
modpol.modules.consent = {
type = "consent",
}
modpol.modules.consent = {}
-- sets consent to its own callback
modpol.modules.consent.__index = modpol.modules.consent
function temp_consent_process()
return {
type = "consent",
org_id = nil,
request_id = nil,
total_votes = 0,
@ -70,3 +69,6 @@ function modpol.modules.consent:update_status()
end
end
function modpol.modules.consent.pending_processes()
end