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:
parent
f837e99077
commit
56ab80d08e
@ -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
|
Loading…
x
Reference in New Issue
Block a user