calling self:call_module instead of self.org:call_module, this should fix process deletion issues

This commit is contained in:
Luke Miller
2022-01-07 15:05:45 -05:00
parent a835799e11
commit 0f479da5ff
11 changed files with 11 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ function add_child_org_consent:initiate(result)
self.initiator, self.initiator,
"Proposed child org: " .. input) "Proposed child org: " .. input)
-- initiate consent process -- initiate consent process
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -128,7 +128,7 @@ end
--- propose_change --- propose_change
-- @field type "add" or "remove" -- @field type "add" or "remove"
function change_modules:propose_change(type, mod_text) function change_modules:propose_change(type, mod_text)
self.org:call_module( self:call_module(
"consent",self.initiator, "consent",self.initiator,
{ {
prompt = "Do you consent to "..type.. prompt = "Do you consent to "..type..

View File

@@ -75,7 +75,7 @@ function change_modules:initiate(result)
self.data.summary = "\nRemove: ".. self.data.summary = "\nRemove: "..
table.concat(self.data.remove_modules,", ") table.concat(self.data.remove_modules,", ")
end end
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -28,7 +28,7 @@ function create_token:initiate(result)
"Token name (alpha-numeric, no spaces):", "Token name (alpha-numeric, no spaces):",
function(input) function(input)
self.config.token_name = input self.config.token_name = input
self.org:call_module( self:call_module(
"tokenomics", "tokenomics",
self.initiator, self.initiator,
{ {

View File

@@ -24,7 +24,7 @@ function join_org_consent:initiate(result)
self.org:delete_process(self.id) self.org:delete_process(self.id)
else else
self.data.result = result self.data.result = result
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -38,7 +38,7 @@ function remove_child_consent:initiate(result)
children, children,
function(input) function(input)
self.data.child_to_remove = modpol.orgs.get_org(input) self.data.child_to_remove = modpol.orgs.get_org(input)
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -32,7 +32,7 @@ function remove_member_consent:initiate(result)
self.org.members, self.org.members,
function(input) function(input)
self.data.member_to_remove = input self.data.member_to_remove = input
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -24,7 +24,7 @@ function remove_org_consent:initiate(result)
self.org:delete_process(self.id) self.org:delete_process(self.id)
else else
self.data.result = result self.data.result = result
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -73,7 +73,7 @@ function remove_process:initiate(result)
if result then result() end if result then result() end
self.org:delete_process(self.id) self.org:delete_process(self.id)
else else
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -45,7 +45,7 @@ function rename_org_consent:initiate(result)
"Proposed to change name of org " .. "Proposed to change name of org " ..
self.org.name .. " to " .. input) self.org.name .. " to " .. input)
-- initiate consent process -- initiate consent process
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {

View File

@@ -47,7 +47,7 @@ function tokenomics:initiate(result)
self.org:delete_process(self.id) self.org:delete_process(self.id)
else else
if self.config.consent then if self.config.consent then
self.org:call_module( self:call_module(
"consent", "consent",
self.initiator, self.initiator,
{ {