Skip to content

Commit

Permalink
fix: log versions as string
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 5, 2021
1 parent 89e4dc7 commit d82fe3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ export class Connection extends JSForceConnection {
await this.isResolvable();
type Versioned = { version: string };
const versions = (await this.request(`${this.instanceUrl}/services/data`)) as Versioned[];
this.logger.debug(`response for org versions: ${versions}`);
this.logger.debug(`response for org versions: ${versions.map((item) => item.version).join(',')}`);
const max = ensure(maxBy(versions, (version: Versioned) => version.version));

return max.version;
}
/**
Expand Down

0 comments on commit d82fe3e

Please sign in to comment.