Fix default database path to use nodes-v2.db

- Change default database path from nodes.db to nodes-v2.db
- This fixes the schema error when using NODE_DB_PATH from env
- Ensures consistency with the v2 implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-06-08 08:07:23 +00:00
parent dde26e2930
commit bbb57e3fcf
4 changed files with 1 additions and 1 deletions

Binary file not shown.

BIN
data/nodes.db-shm Normal file

Binary file not shown.

0
data/nodes.db-wal Normal file
View File

View File

@@ -47,7 +47,7 @@ export class NodeDocumentationService {
private docsFetcher: DocumentationFetcher;
constructor(dbPath?: string) {
const databasePath = dbPath || process.env.NODE_DB_PATH || path.join(process.cwd(), 'data', 'nodes.db');
const databasePath = dbPath || process.env.NODE_DB_PATH || path.join(process.cwd(), 'data', 'nodes-v2.db');
// Ensure directory exists
const dbDir = path.dirname(databasePath);