mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
🐛 fix(chat-backend): remove type-only ConfigService import
Fixed NestJS dependency injection error in ChatService by converting type-only import to regular import. Root cause: Type-only imports are erased at compile time, causing NestJS to fail dependency injection at runtime. Error: "Nest can't resolve dependencies of the ChatService (?, DATABASE_CONNECTION)" This was the same issue we fixed in mana-core-auth services. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9b26caf5a1
commit
b8f9bc107c
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Injectable, Inject, Logger } from '@nestjs/common';
|
||||
import { type ConfigService } from '@nestjs/config';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { eq } from 'drizzle-orm';
|
||||
import { type AsyncResult, ok, err, ValidationError, ServiceError } from '@manacore/shared-errors';
|
||||
import { GoogleGenerativeAI } from '@google/generative-ai';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue