Skip to content

Commit

Permalink
fix: added _options to topOptions parameters.context.google check (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
giorod3 authored and JustinBeckwith committed Jun 28, 2019
1 parent 7eb3905 commit da1e230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apirequest.ts
Expand Up @@ -74,7 +74,7 @@ async function createAPIRequestAsync<T>(parameters: APIRequestParams) {
// Create a new params object so it can no longer be modified from outside
// code Also support global and per-client params, but allow them to be
// overriden per-request
const topOptions = parameters.context.google
const topOptions = (parameters.context.google && parameters.context.google._options && parameters.context.google._options.params)
? parameters.context.google._options.params
: {};
params = Object.assign(
Expand Down

0 comments on commit da1e230

Please sign in to comment.