mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-27 12:17: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
|
|
@ -9,7 +9,7 @@ import {
|
|||
UseGuards,
|
||||
Headers,
|
||||
} from '@nestjs/common';
|
||||
import { type FeedbackService } from './feedback.service';
|
||||
import { FeedbackService } from './feedback.service';
|
||||
import { JwtAuthGuard } from '../common/guards/jwt-auth.guard';
|
||||
import { OptionalAuthGuard } from '../common/guards/optional-auth.guard';
|
||||
import { CurrentUser, type CurrentUserData } from '../common/decorators/current-user.decorator';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue