i dont know what i am doing
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 1m15s

This commit is contained in:
unurled 2025-02-15 12:08:24 +01:00
parent b22cbe79c3
commit 9562b9b3b1
Signed by: unurled
GPG key ID: EFC5F5E709B47DDD
3 changed files with 7 additions and 15 deletions

View file

@ -33,4 +33,4 @@ COPY --from=builder /app/node_modules/.prisma/client ./node_modules/.prisma/clie
EXPOSE 4000 EXPOSE 4000
CMD bun prisma migrate deploy && node dist/src/app CMD bun prisma migrate deploy && bun run dist/src/app

View file

@ -15,14 +15,15 @@ import { ConsoleLogger, Logger } from '@nestjs/common';
import * as process from 'process'; import * as process from 'process';
import { FastifyReply } from 'fastify/types/reply'; import { FastifyReply } from 'fastify/types/reply';
import { FastifyRequest } from 'fastify/types/request'; import { FastifyRequest } from 'fastify/types/request';
import metadata from './metadata';
const logger: Logger = new Logger('App'); const logger: Logger = new Logger('App');
process.env.APP_NAME = process.env.npm_package_name process.env.APP_NAME =
.split('-') process.env.npm_package_name ||
.map((word: string): string => word.charAt(0).toUpperCase() + word.slice(1)) 'bracket-backend'
.join(' '); .split('-')
.map((word: string): string => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ');
const port: number = parseInt(process.env.PORT) || 4000; const port: number = parseInt(process.env.PORT) || 4000;
async function bootstrap() { async function bootstrap() {

View file

@ -1,9 +0,0 @@
/* eslint-disable */
export default async () => {
const t = {
["./common/modules/auth/models/entities/user.entity"]: await import("./common/modules/auth/models/entities/user.entity"),
["./common/models/entities/version.entity"]: await import("./common/models/entities/version.entity"),
["./common/modules/auth/models/payloads/login.payload"]: await import("./common/modules/auth/models/payloads/login.payload")
};
return { "@nestjs/swagger": { "models": [[import("./common/models/entities/version.entity"), { "VersionEntity": { version: { required: true, type: () => String } } }], [import("./common/modules/auth/models/dto/register.dto"), { "RegisterDto": { email: { required: true, type: () => String }, username: { required: true, type: () => String }, password: { required: true, type: () => String } } }], [import("./common/modules/auth/models/entities/user.entity"), { "UserEntity": { id: { required: true, type: () => String }, email: { required: true, type: () => String }, username: { required: true, type: () => String }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, verified: { required: true, type: () => Boolean }, password: { required: true, type: () => String }, tokenId: { required: true, type: () => String } } }], [import("./common/modules/auth/models/payloads/login.payload"), { "LoginPayload": { user: { required: true, type: () => t["./common/modules/auth/models/entities/user.entity"].UserEntity }, token: { required: true, type: () => String } } }], [import("./common/modules/auth/models/dto/local-login.dto"), { "LocalLoginDto": { email: { required: true, type: () => String }, password: { required: true, type: () => String } } }], [import("./common/models/dto/pagination.dto"), { "PaginationDto": { take: { required: false, type: () => Number, minimum: 1 }, skip: { required: false, type: () => Number, minimum: 0 } } }], [import("./common/models/responses/pagination.response"), { "PaginationResponse": { data: { required: true }, total: { required: true, type: () => Number }, take: { required: true, type: () => Number }, skip: { required: true, type: () => Number } } }]], "controllers": [[import("./app.controller"), { "AppController": { "getVersion": { type: t["./common/models/entities/version.entity"].VersionEntity } } }], [import("./common/modules/auth/register.controller"), { "RegisterController": { "register": { status: 500, description: "Internal server error" } } }], [import("./common/modules/auth/login.controller"), { "LoginController": { "login": { status: 500, description: "Internal server error", type: t["./common/modules/auth/models/payloads/login.payload"].LoginPayload }, "loginCallback": { status: 500, description: "Internal server error", type: t["./common/modules/auth/models/payloads/login.payload"].LoginPayload } } }], [import("./common/modules/auth/auth.controller"), { "AuthController": { "logoutAll": {} } }], [import("./modules/users/users.controller"), { "UsersController": { "getMyself": { type: t["./common/modules/auth/models/entities/user.entity"].UserEntity } } }]] } };
};