aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/media.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/media.erl b/server/media.erl
index 7c08caa..10fed99 100644
--- a/server/media.erl
+++ b/server/media.erl
@@ -136,7 +136,7 @@ lock(Artist, Title) ->
F = fun() ->
[Head|_] = ask(Artist, Title),
Votes = Head#track.lock = true,
- New = Head#track{votes = Votes},
+ New = Head#track{lock = Votes},
mnesia:write(New)
end,
mnesia:transaction(F).
@@ -145,7 +145,7 @@ unlock(Artist, Title) ->
F = fun() ->
[Head|_] = ask(Artist, Title),
Votes = Head#track.lock = false,
- New = Head#track{votes = Votes},
+ New = Head#track{lock = Votes},
mnesia:write(New)
end,
mnesia:transaction(F).