From e2ca1896d939ce7be7685d67ebb05b61aa41cf92 Mon Sep 17 00:00:00 2001 From: GordiNoki Date: Sun, 20 Oct 2024 21:47:05 +0300 Subject: [PATCH] fix(back): Mark allow bhop regions as optional --- apps/backend/src/app/dto/map/map-zones.dto.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/backend/src/app/dto/map/map-zones.dto.ts b/apps/backend/src/app/dto/map/map-zones.dto.ts index c7527884d..d9735024e 100644 --- a/apps/backend/src/app/dto/map/map-zones.dto.ts +++ b/apps/backend/src/app/dto/map/map-zones.dto.ts @@ -183,6 +183,7 @@ export class MainTrackDto /* extends JsonifiableDto */ implements MainTrack { "Overrides the game mode's settings to allow bhopping on this track" }) @IsBoolean() + @IsOptional() readonly bhopEnabled: boolean; } @@ -201,6 +202,7 @@ export class BonusTrackDto /* extends JsonifiableDto */ implements BonusTrack { "Overrides the game mode's settings to allow bhopping on this track" }) @IsBoolean() + @IsOptional() readonly bhopEnabled: boolean; } @@ -257,5 +259,6 @@ export class MapZonesDto /* extends JsonifiableDto */ implements MapZones { readonly tracks: MapTracksDto; @NestedProperty(GlobalRegionsDto, { required: false }) + @IsOptional() readonly globalRegions?: GlobalRegionsDto; }