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"]