Skip to content

Commit

Permalink
Fix bug in hubdb create (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
kemmerle authored Jan 7, 2025
1 parent ce17c8e commit 99b9b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/hubdb/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ exports.handler = async options => {

let filePath;
try {
const { path: filePath } =
const filePath =
'path' in options
? path.resolve(getCwd(), options.path)
: await selectPathPrompt(options);
: path.resolve(getCwd(), (await selectPathPrompt(options)).path);
if (!checkAndConvertToJson(filePath)) {
process.exit(EXIT_CODES.ERROR);
}
Expand Down

0 comments on commit 99b9b37

Please sign in to comment.