diff --git a/.gitignore b/.gitignore index f4f8ff0..57a8bbf 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /tmp /node_modules oclif.manifest.json +/config.json yarn.lock diff --git a/config.json b/config.json deleted file mode 100644 index 14d290a..0000000 --- a/config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "token": "icsy0appti460sbh5be1sevami702rc8a57l2e8h", - "url": "http://localhost:3000" -} \ No newline at end of file diff --git a/src/commands/project/create.ts b/src/commands/project/create.ts index 2b3988e..1a70414 100644 --- a/src/commands/project/create.ts +++ b/src/commands/project/create.ts @@ -66,7 +66,7 @@ export default class ProjectCreate extends Command { try { const response = await axios.post( - `${auth.url}/api/trpc/project.createCLI`, + `${auth.url}/api/trpc/project.create`, { json: { description, diff --git a/src/utils/shared.ts b/src/utils/shared.ts index c1ff412..9abd021 100644 --- a/src/utils/shared.ts +++ b/src/utils/shared.ts @@ -36,7 +36,7 @@ export const getProjects = async ( } return projects; - } catch { + } catch (error) { // @ts-expect-error TODO: Fix this command.error(chalk.red(`Failed to fetch project list: ${error.message}`)); } @@ -74,7 +74,7 @@ export const getProject = async ( } return project; - } catch { + } catch (error) { // @ts-expect-error TODO: Fix this command.error(chalk.red(`Failed to fetch project: ${error.message}`)); }