Skip to content

Commit

Permalink
model_torrents:add_torrent/5: handle success case :)
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Dec 3, 2012
1 parent 7cac596 commit f769567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/model/src/model_torrents.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ add_torrent(InfoHash, Name, Size, Torrent, Updater) ->
?Q("SELECT torrent FROM torrents WHERE info_hash=$1", [InfoHash]),
Torrent2 = Updater(Torrent1),
?Q("UPDATE torrents SET torrent=$2 WHERE info_hash=$1", [InfoHash, Torrent2])
end)
end);
{ok, 1} ->
ok
end.

get_torrent(InfoHash) ->
Expand Down

0 comments on commit f769567

Please sign in to comment.