From 99b9b374f977445f30c83e6aa7361a94a11b394f Mon Sep 17 00:00:00 2001 From: kemmerle Date: Tue, 7 Jan 2025 16:28:12 -0500 Subject: [PATCH] Fix bug in `hubdb create` (#1317) --- commands/hubdb/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/hubdb/create.ts b/commands/hubdb/create.ts index bb77c8897..a712bcc1e 100644 --- a/commands/hubdb/create.ts +++ b/commands/hubdb/create.ts @@ -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); }