From 8ec865d9852ff24e402d08d193c161be6e8685e8 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 9 Oct 2024 01:58:42 +0100 Subject: [PATCH] OOPSIE DOODLE (and fix it crying) --- projects/backend/src/model/player.ts | 3 ++- projects/website/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/backend/src/model/player.ts b/projects/backend/src/model/player.ts index 57f8286..d4e6564 100644 --- a/projects/backend/src/model/player.ts +++ b/projects/backend/src/model/player.ts @@ -1,4 +1,4 @@ -import { getModelForClass, prop, ReturnModelType } from "@typegoose/typegoose"; +import { getModelForClass, modelOptions, prop, ReturnModelType, Severity } from "@typegoose/typegoose"; import { Document } from "mongoose"; import { PlayerHistory } from "@ssr/common/types/player/player-history"; import { formatDateMinimal, getDaysAgoDate, getMidnightAlignedDate } from "@ssr/common/utils/time-utils"; @@ -6,6 +6,7 @@ import { formatDateMinimal, getDaysAgoDate, getMidnightAlignedDate } from "@ssr/ /** * The model for a player. */ +@modelOptions({ options: { allowMixed: Severity.ALLOW } }) export class Player { /** * The id of the player. diff --git a/projects/website/Dockerfile b/projects/website/Dockerfile index d7fd694..3913713 100644 --- a/projects/website/Dockerfile +++ b/projects/website/Dockerfile @@ -35,4 +35,4 @@ EXPOSE 3000 ENV HOSTNAME="0.0.0.0" ENV PORT=3000 -CMD ["bun", "run", "--filter", "backend", "start"] +CMD ["bun", "run", "--filter", "website", "start"]