Commit 9be0d17
committed
fix: Add AuthModule imports to fix dependency injection
🔧 Fix NestJS Dependency Injection
## Issue Fixed:
- 502 Bad Gateway error due to backend startup failure
- JwtAuthGuard couldn't resolve AuthService dependency
- Modules using JwtAuthGuard didn't import AuthModule
## Root Cause:
- JwtAuthGuard requires AuthService for token validation
- AuthService is provided by AuthModule
- Modules using JwtAuthGuard must import AuthModule
## Solution:
- Added AuthModule imports to all modules using JwtAuthGuard:
- ScientificModule: Added AuthModule import
- SchemaModule: Added AuthModule import
- CollaborationModule: Added AuthModule import
- MediaModule: Added AuthModule import
- VersionControlModule: Added AuthModule import
## Modules Fixed:
- ScientificModule: Now has access to AuthService
- SchemaModule: Now has access to AuthService
- CollaborationModule: Now has access to AuthService
- MediaModule: Now has access to AuthService
- VersionControlModule: Now has access to AuthService
This resolves the dependency injection error and allows
the backend to start properly in production.1 parent 0d7c792 commit 9be0d17
5 files changed
Lines changed: 10 additions & 1 deletion
File tree
- nodebook-base/src
- collaboration
- media
- schema
- scientific
- version-control
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments