mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 00:16:41 +02:00
fix: resolve TypeScript compilation errors in core service
- Add twoFactorEnabled to LoginResponse user type - Replace useBodyParser with express json() middleware for body limit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6fa86714db
commit
b5ec4e13b7
2 changed files with 3 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ interface LoginResponse {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
lastName: string;
|
lastName: string;
|
||||||
role: string;
|
role: string;
|
||||||
|
twoFactorEnabled: boolean;
|
||||||
};
|
};
|
||||||
requiresTwoFactor?: boolean;
|
requiresTwoFactor?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { ValidationPipe, Logger } from '@nestjs/common';
|
||||||
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
||||||
import cookieParser from 'cookie-parser';
|
import cookieParser from 'cookie-parser';
|
||||||
import helmet from 'helmet';
|
import helmet from 'helmet';
|
||||||
|
import { json } from 'express';
|
||||||
import { AppModule } from './app.module';
|
import { AppModule } from './app.module';
|
||||||
|
|
||||||
async function bootstrap(): Promise<void> {
|
async function bootstrap(): Promise<void> {
|
||||||
|
|
@ -16,7 +17,7 @@ async function bootstrap(): Promise<void> {
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
|
|
||||||
// Body size limit erhoehen fuer Base64 Avatar-Uploads (Standard ~100KB)
|
// Body size limit erhoehen fuer Base64 Avatar-Uploads (Standard ~100KB)
|
||||||
app.useBodyParser('json', { limit: '1mb' });
|
app.use(json({ limit: '1mb' }));
|
||||||
|
|
||||||
// CORS
|
// CORS
|
||||||
const corsOrigins = process.env.CORS_ORIGINS?.split(',') ?? [
|
const corsOrigins = process.env.CORS_ORIGINS?.split(',') ?? [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue