return transport defined response on subscription updates just like on new registrations
This commit is contained in:
parent
3551e6fc38
commit
7aefdcca3d
2 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,7 @@ class SubscriptionManagementPlugin extends ServerPlugin {
|
||||||
[
|
[
|
||||||
'success' => $updateSuccess,
|
'success' => $updateSuccess,
|
||||||
'errors' => $updateErrors,
|
'errors' => $updateErrors,
|
||||||
|
'response' => $responseContent,
|
||||||
] = $transport->updateSubscription($subscription->getId(), $subscriptionOptions);
|
] = $transport->updateSubscription($subscription->getId(), $subscriptionOptions);
|
||||||
|
|
||||||
if(!$updateSuccess) {
|
if(!$updateSuccess) {
|
||||||
|
|
|
@ -111,6 +111,7 @@ class WebPushTransport extends Transport {
|
||||||
// there are no options which can be edited -> NOOP
|
// there are no options which can be edited -> NOOP
|
||||||
return [
|
return [
|
||||||
'success' => True,
|
'success' => True,
|
||||||
|
'response' => "",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue