Fix missing success responses

This commit is contained in:
grandeljay 2022-04-07 20:36:49 +02:00
parent 1a6e6ff31f
commit d817f6db8f
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -101,6 +101,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
WHERE `id` = ' . $_PUT['wishlist_id'] . '
;');
$response['success'] = true;
break;
case 'DELETE':