mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-28 15:57:43 +02:00
🐛 fix(mana-core-auth): remove type-only imports from services and controllers
Fixed remaining NestJS dependency injection issues by converting type-only imports to regular imports for all injectable services used in controllers and service dependencies.
Changes:
- feedback.service.ts: Fixed AiService import (was causing "argument Function at index [1]" error)
- auth.controller.ts: Fixed BetterAuthService import
- feedback.controller.ts: Fixed FeedbackService import
- credits.controller.ts: Fixed CreditsService import
- settings.controller.ts: Fixed SettingsService import
Root cause: Type-only imports (`import { type X }`) are erased at compile time, causing NestJS to fail dependency injection at runtime. All injectable classes must use regular imports.
Verified locally: All modules initialize successfully without DI errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
60ecc24f6c
commit
9b26caf5a1
5 changed files with 5 additions and 5 deletions
|
|
@ -10,7 +10,7 @@ import {
|
|||
HttpCode,
|
||||
HttpStatus,
|
||||
} from '@nestjs/common';
|
||||
import { type BetterAuthService } from './services/better-auth.service';
|
||||
import { BetterAuthService } from './services/better-auth.service';
|
||||
import { type RegisterDto } from './dto/register.dto';
|
||||
import { type LoginDto } from './dto/login.dto';
|
||||
import { type RefreshTokenDto } from './dto/refresh-token.dto';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue