Skip to content

Commit

Permalink
fix: await the call to authInfo.save
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel authored and peternhale committed Feb 25, 2021
1 parent 7bc75c1 commit 299499e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class Connection extends JSForceConnection {
// verifies DNS
await this.useLatestApiVersion();
version = this.getApiVersion();
this.options.authInfo.save({
await this.options.authInfo.save({
instanceApiVersion: version,
// This will get messed up if the user changes their local time on their machine.
// Not a big deal since it will just get updated sooner/later.
Expand Down

0 comments on commit 299499e

Please sign in to comment.