Skip to content

Commit e1ee87b

Browse files
committed
fix: Add AuthModule import to GraphModule
🔧 Fix GraphModule Dependency Injection ## Issue Fixed: - Backend still failing with GraphModule dependency error - GraphModule missing AuthModule import for JwtAuthGuard - GraphController uses JwtAuthGuard but GraphModule doesn't have AuthService ## Solution: - Added AuthModule import to GraphModule - GraphModule now has access to AuthService - JwtAuthGuard can now resolve AuthService dependency ## Key Change: - GraphModule: Added AuthModule import - GraphController: Now has access to AuthService via AuthModule This completes the dependency injection fixes for all modules using JwtAuthGuard in the NestJS application.
1 parent 9be0d17 commit e1ee87b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nodebook-base/src/graph/graph.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { DataStoreService } from './services/data-store.service.js';
66
import { GraphManagerService } from './services/graph-manager.service.js';
77
import { CNLParserService } from './services/cnl-parser.service.js';
88
import { CNLSuggestionService } from './services/cnl-suggestion.service.js';
9+
import { AuthModule } from '../auth/auth.module.js';
910

1011
@Module({
11-
imports: [ConfigModule],
12+
imports: [ConfigModule, AuthModule],
1213
controllers: [GraphController],
1314
providers: [
1415
GraphService,

0 commit comments

Comments
 (0)