Fix missing success responses
This commit is contained in:
parent
1a6e6ff31f
commit
d817f6db8f
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
WHERE `id` = ' . $_PUT['wishlist_id'] . '
|
||||
;');
|
||||
|
||||
$response['success'] = true;
|
||||
break;
|
||||
|
||||
case 'DELETE':
|
||||
|
|
Loading…
Reference in a new issue