aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarco Ziener <mziener@lavabit.com>2010-10-14 15:23:29 +0200
committerMarco Ziener <mziener@lavabit.com>2010-10-14 15:23:29 +0200
commit6fbd6d9be211e1dae9a4ba003cefb2eb34c05c4c (patch)
tree4a908ff79871ecaa842b052a96a5004b50f48585 /server
parent9db2bb8495b02c24927c9fd3d0c5990abcfd9cba (diff)
downloaderlang-6fbd6d9be211e1dae9a4ba003cefb2eb34c05c4c.tar.gz
erlang-6fbd6d9be211e1dae9a4ba003cefb2eb34c05c4c.tar.xz
erlang-6fbd6d9be211e1dae9a4ba003cefb2eb34c05c4c.zip
Fixed errors
Diffstat (limited to 'server')
-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).