From 20e83fdb119668f45fa6e24025bb07e10c581593 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Wed, 16 Jan 2019 11:35:55 +0100 Subject: ... --- src/bounty/struct/bnt_bounty.erl | 5 +++-- 1 file 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, -- cgit v1.2.3-70-g09d2