Browse Source

mintest notes

Luke Miller 2 years ago
parent
commit
8bc5c5ba4e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modpol/orgs/process.lua

+ 3 - 1
modpol/orgs/process.lua

@@ -48,6 +48,8 @@ function init_consent(policy) {
     self.member_count = modpol.orgs.get_org(self.org_id):get_member_count()
 
     if policy.duration then
+        -- mintest.after(time, func, ...args)
+        -- should override modpol callback function
         register_callback(self.start_time + policy.duration)
     end
 
@@ -65,7 +67,7 @@ function update_consent(user, approve) {
         table.insert(yes_votes, user)
     else
         table.insert(no_votes, user)
-        
+
     if not duration then 
         eval_consent()
     end