summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-01-16 11:35:55 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-01-16 11:35:55 +0100 |
commit | 20e83fdb119668f45fa6e24025bb07e10c581593 (patch) | |
tree | 9add8d85321c1b1ca8c3db0a6d04b444fc2193c2 /src/bounty | |
parent | 545be2964873423280fae2cb1c211b746a37b562 (diff) |
...
Diffstat (limited to 'src/bounty')
-rw-r--r-- | src/bounty/struct/bnt_bounty.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bounty/struct/bnt_bounty.erl b/src/bounty/struct/bnt_bounty.erl index 4ede9b0..c6aa450 100644 --- a/src/bounty/struct/bnt_bounty.erl +++ b/src/bounty/struct/bnt_bounty.erl @@ -61,6 +61,7 @@ generate (User, NotBefore, Deadline, Job) -> JanitorAndUser = ataxia_security:add_access(User, JanitorOnly), Bounty = + #bounty { deadline = Deadline, user = User, @@ -81,9 +82,9 @@ generate (User, NotBefore, Deadline, Job) -> -spec resolve () -> type(). resolve () -> - Lock = ataxia_lock:locked(ataxia_security:admin(), 60), + Lock = ataxia_lock:locked(ataxia_security:admin(), ataxia_time:now()), - {ok, BountyID, Bounty} = + {ok, Bounty, BountyID} = ataxia_client:update_and_fetch_any ( bounty_db, |