mintest notes

This commit is contained in:
Luke Miller 2021-10-11 15:26:15 -04:00
parent 2386c0e929
commit 8bc5c5ba4e

View File

@ -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