зеркало из https://github.com/nextcloud/cookbook.git
Update recipe controller to use parameter correctly
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
73dd58a104
Коммит
94c1ac72ee
|
@ -94,6 +94,7 @@ class RecipeController extends Controller {
|
|||
* @param $id
|
||||
*
|
||||
* @return DataResponse
|
||||
* @todo Parameter id is never used. Fix that
|
||||
*/
|
||||
public function update($id) {
|
||||
$this->dbCacheService->triggerCheck();
|
||||
|
@ -145,7 +146,7 @@ class RecipeController extends Controller {
|
|||
|
||||
try {
|
||||
$this->service->deleteRecipe($id);
|
||||
return new DataResponse('Recipe ' . $_GET['id'] . ' deleted successfully', Http::STATUS_OK);
|
||||
return new DataResponse('Recipe ' . $id . ' deleted successfully', Http::STATUS_OK);
|
||||
} catch (\Exception $e) {
|
||||
return new DataResponse($e->getMessage(), 502);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче