Commit 03fc8dfa authored by Ryan Cobb's avatar Ryan Cobb Committed by Ryan

Adjust customers api response

parent f59196f6
......@@ -98,7 +98,7 @@ module Subscriptions
Rails.cache.fetch('customers_oauth_app_id', expires_in: 1.hour) do
response = client.customers_oauth_app_id
response.dig(:data, 'customers_oauth_app_id')
response.dig(:data, 'oauth_app_id')
end
end
......
......@@ -35,7 +35,7 @@ RSpec.describe Subscriptions::CreateService do
describe '#execute' do
before do
allow(client).to receive(:customers_oauth_app_id).and_return( { data: { 'customers_oauth_app_id' => oauth_app.uid } } )
allow(client).to receive(:customers_oauth_app_id).and_return( { data: { 'oauth_app_id' => oauth_app.uid } } )
allow(Doorkeeper::OAuth::Helpers::UniqueToken).to receive(:generate).and_return('foo_token')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment