diff options
-rw-r--r-- | server/cldb.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/cldb.erl b/server/cldb.erl index f6c7821..d1daaa9 100644 --- a/server/cldb.erl +++ b/server/cldb.erl @@ -63,7 +63,7 @@ decVote(User) -> incVote(User) -> F = fun() -> - [Head|_] = ask(User, '_'), + {atomic, [Head|_]} = ask(User, '_'), Votes = Head#user.votes + 1, New = Head#user{votes = Votes}, mnesia:write(New) |