fix subscriptionController
This commit is contained in:
Родитель
83c16987eb
Коммит
28f1b40479
|
@ -85,7 +85,7 @@ class SubscriptionController extends Controller {
|
|||
*/
|
||||
public function set($pollId, $token, $subscribed) {
|
||||
try {
|
||||
return new DataResponse($this->subscriptionService->set($pollId, $token, $subscribed), Http::STATUS_OK);
|
||||
return new DataResponse(['subscribed' => $this->subscriptionService->set($pollId, $token, $subscribed)], Http::STATUS_OK);
|
||||
} catch (NotAuthorizedException $e) {
|
||||
return new DataResponse(['error' => $e->getMessage()], $e->getStatus());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче