Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
QuickbaseService:
 - validate hostname in constructor
  • Loading branch information
cdoak-gh committed Nov 7, 2024
1 parent 2843b43 commit 5c93845
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/QuickbaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ export default class QuickbaseService {
"Quickbase REST API URL is required."
)
}

if(!hostname) {
throw new Error(
"Quickbase Hostname is required."
)
}
this.instanceUrl = url.replace(/\/+$/, "");
this.hostName = hostname;
this._origin = origin;
Expand Down

0 comments on commit 5c93845

Please sign in to comment.