Improve speed of wish related function

This commit is contained in:
Gilles Crettenand
2015-05-21 14:55:16 +02:00
parent 3406e640e9
commit 0d6841d106
2 changed files with 37 additions and 43 deletions

View File

@@ -230,14 +230,12 @@ class NetBiblio extends WebService
public function AddWish($bookNr)
{
$id = AudioBook::findIdByCode(intval($bookNr));
$this->data[] = $this->getUser()->addWish($id);
$this->data[] = $this->getUser()->addWish($bookNr);
}
public function DeleteWish($bookNr)
{
$id = AudioBook::findIdByCode(intval($bookNr));
$this->getUser()->deleteWish($id);
$this->getUser()->deleteWish($bookNr);
}
public function FindBooks($codes)