🔧 fix(photos): remove unused nestjs-integration dependency

Photos doesn't use credits, so ManaCoreModule is not needed.
Use shared-nestjs-auth directly instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-12 01:43:44 +01:00
parent 5ce4e42c20
commit 36563f4459
3 changed files with 1 additions and 16 deletions

View file

@ -18,7 +18,6 @@ COPY packages/shared-nestjs-health ./packages/shared-nestjs-health
COPY packages/shared-nestjs-metrics ./packages/shared-nestjs-metrics
COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
COPY packages/shared-tsconfig ./packages/shared-tsconfig
COPY packages/mana-core-nestjs-integration ./packages/mana-core-nestjs-integration
COPY packages/shared-drizzle-config ./packages/shared-drizzle-config
# Copy photos shared package
@ -46,9 +45,6 @@ RUN pnpm build
WORKDIR /app/packages/shared-nestjs-setup
RUN pnpm build
WORKDIR /app/packages/mana-core-nestjs-integration
RUN pnpm build
# Build the backend
WORKDIR /app/apps/photos/apps/backend
RUN pnpm build

View file

@ -16,7 +16,6 @@
"db:generate": "drizzle-kit generate"
},
"dependencies": {
"@manacore/nestjs-integration": "workspace:*",
"@manacore/shared-nestjs-auth": "workspace:*",
"@manacore/shared-nestjs-health": "workspace:*",
"@nestjs/common": "^10.4.9",

View file

@ -1,6 +1,5 @@
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ManaCoreModule } from '@manacore/nestjs-integration';
import { ConfigModule } from '@nestjs/config';
import { HealthModule } from '@manacore/shared-nestjs-health';
import { DatabaseModule } from './db/database.module';
import { AlbumModule } from './album/album.module';
@ -14,15 +13,6 @@ import { PhotoModule } from './photo/photo.module';
isGlobal: true,
envFilePath: '.env',
}),
ManaCoreModule.forRootAsync({
imports: [ConfigModule],
useFactory: (configService: ConfigService) => ({
appId: configService.get<string>('APP_ID', 'photos'),
serviceKey: configService.get<string>('MANA_CORE_SERVICE_KEY', ''),
debug: configService.get('NODE_ENV') === 'development',
}),
inject: [ConfigService],
}),
HealthModule.forRoot({ serviceName: 'photos-backend' }),
DatabaseModule,
AlbumModule,