From d817f6db8ffd7db2df141ebf531edc4cb88bbabe Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 7 Apr 2022 20:36:49 +0200 Subject: [PATCH] Fix missing success responses --- src/api/wishes.php | 4 ++++ src/api/wishlists.php | 1 + 2 files changed, 5 insertions(+) diff --git a/src/api/wishes.php b/src/api/wishes.php index 7e589a8c..74424633 100644 --- a/src/api/wishes.php +++ b/src/api/wishes.php @@ -90,6 +90,8 @@ switch ($_SERVER['REQUEST_METHOD']) { SET `status` = "' . $_PUT['wish_status'] . '" WHERE `id` = ' . $_PUT['wish_id'] . ' ;'); + + $response['success'] = true; } elseif (isset($_PUT['wish_url_current'], $_PUT['wish_url_proposed'])) { /** * Update Wish URL @@ -98,6 +100,8 @@ switch ($_SERVER['REQUEST_METHOD']) { SET `url` = "' . $_PUT['wish_url_proposed'] . '" WHERE `url` = "' . $_PUT['wish_url_current'] . '" ;'); + + $response['success'] = true; } break; diff --git a/src/api/wishlists.php b/src/api/wishlists.php index bab0ff5a..e723789a 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -101,6 +101,7 @@ switch ($_SERVER['REQUEST_METHOD']) { WHERE `id` = ' . $_PUT['wishlist_id'] . ' ;'); + $response['success'] = true; break; case 'DELETE':