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':