From 6fbd6d9be211e1dae9a4ba003cefb2eb34c05c4c Mon Sep 17 00:00:00 2001 From: Marco Ziener Date: Thu, 14 Oct 2010 15:23:29 +0200 Subject: Fixed errors --- server/media.erl | 4 ++-- 1 file 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). -- cgit v1.2.3