From b26ea700793eb2a985f28ce7fc349164d5edaf89 Mon Sep 17 00:00:00 2001 From: Steve Hetzel Date: Wed, 24 Feb 2021 11:35:28 -0700 Subject: [PATCH] fix: await the call to authInfo.save --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index 6aa65024ff..9268ac5074 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -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.