mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-24 21:16:40 +02:00
fix: resolve TypeScript compilation errors
- Fix cookieParser import (default import instead of namespace) - Cast tenant settings to Prisma.InputJsonValue for type safety Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b2ef16eb28
commit
5214d5e0f7
2 changed files with 4 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
NotFoundException,
|
||||
Logger,
|
||||
} from '@nestjs/common';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { PrismaService } from '../../prisma/prisma.service';
|
||||
import { CreateTenantDto } from './dto/create-tenant.dto';
|
||||
import { UpdateTenantDto } from './dto/update-tenant.dto';
|
||||
|
|
@ -31,7 +32,7 @@ export class TenantsService {
|
|||
name: dto.name,
|
||||
slug: dto.slug,
|
||||
isActive: true,
|
||||
settings: dto.settings ?? {},
|
||||
settings: (dto.settings ?? {}) as Prisma.InputJsonValue,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -118,7 +119,7 @@ export class TenantsService {
|
|||
data: {
|
||||
name: dto.name,
|
||||
isActive: dto.isActive,
|
||||
settings: dto.settings,
|
||||
settings: dto.settings as Prisma.InputJsonValue,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { NestFactory } from '@nestjs/core';
|
||||
import { ValidationPipe, Logger } from '@nestjs/common';
|
||||
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
||||
import * as cookieParser from 'cookie-parser';
|
||||
import cookieParser from 'cookie-parser';
|
||||
import helmet from 'helmet';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue