Fix 404 for GET /api/v1/push/subscription (#7472)

My bad...
lolsob-rspec
Eugen Rochko 2018-05-13 21:45:18 +02:00 committed by GitHub
parent 7463d87ec3
commit b0e1211eec
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ class Api::V1::Push::SubscriptionsController < Api::BaseController
end end
def show def show
raise ActiveRecord::RecordNotFound if @web_subscription.nil?
render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer render json: @web_subscription, serializer: REST::WebPushSubscriptionSerializer
end end