From 97702e4362bcafdeaa4055bef9a0ca0293260634 Mon Sep 17 00:00:00 2001 From: Louis Le Date: Thu, 8 Aug 2024 16:14:04 +0700 Subject: [PATCH] fix: set namespace for js module --- cortex-js/src/index.ts | 1 + cortex-js/src/infrastructure/commanders/base.command.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cortex-js/src/index.ts b/cortex-js/src/index.ts index 34a1cef2a..24dfa6d73 100644 --- a/cortex-js/src/index.ts +++ b/cortex-js/src/index.ts @@ -23,6 +23,7 @@ export async function start( dataFolder?: string, ) { if (name) { + fileManagerService.setConfigProfile(name); const isProfileConfigExists = fileManagerService.profileConfigExists(name); if (!isProfileConfigExists) { await fileManagerService.writeConfigFile({ diff --git a/cortex-js/src/infrastructure/commanders/base.command.ts b/cortex-js/src/infrastructure/commanders/base.command.ts index 5d3be2b98..e6b23463f 100644 --- a/cortex-js/src/infrastructure/commanders/base.command.ts +++ b/cortex-js/src/infrastructure/commanders/base.command.ts @@ -3,7 +3,6 @@ import { Injectable } from '@nestjs/common'; import { CortexUsecases } from '@/usecases/cortex/cortex.usecases'; import ora from 'ora'; import { CortexClient } from './services/cortex.client'; -import { fileManagerService } from '../services/file-manager/file-manager.service'; @Injectable() export abstract class BaseCommand extends CommandRunner {