Fix wrong column used to fetch NFO for a release in api

This commit is contained in:
DariusIII
2018-02-11 19:10:03 +01:00
parent a2728d6c0f
commit e40560d42e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-02-11 DariusIII
* Fix: Fix wrong column used to fetch NFO for a release in api
* Chg: Update laravel-countries to version 1.0.3
2018-02-10 DariusIII
* Chg: Update resetdb artisan command
+1 -1
View File
@@ -272,7 +272,7 @@ switch ($function) {
}
UserRequest::addApiRequest($uid, $_SERVER['REQUEST_URI']);
$rel = Release::query()->where('id', $_GET['id'])->first(['id', 'searchname']);
$rel = Release::query()->where('guid', $_GET['id'])->first(['id', 'searchname']);
$data = ReleaseNfo::getReleaseNfo($rel['id']);
if ($rel !== null) {