Skip to content

Commit

Permalink
fix: reverse the resource based routing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lalji Kanjareeya committed Jan 1, 2020
1 parent aae7311 commit 6ac1e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -306,7 +306,7 @@ class Spanner extends GrpcService {
this.options.enableResourceBasedRouting =
typeof options!.enableResourceBasedRouting === 'boolean'
? options.enableResourceBasedRouting
: process.env.GOOGLE_CLOUD_ENABLE_RESOURCE_BASED_ROUTING !== 'false';
: process.env.GOOGLE_CLOUD_ENABLE_RESOURCE_BASED_ROUTING === 'true';
/**
* Get a list of {@link Instance} objects as a readable object stream.
*
Expand Down

0 comments on commit 6ac1e29

Please sign in to comment.