From f700f1abac354228da6808d004da97b1cd9f9574 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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..33ed9cc3a 100644 --- a/apps/backend/src/app/dto/map/map-zones.dto.ts +++ b/apps/backend/src/app/dto/map/map-zones.dto.ts @@ -183,7 +183,8 @@ export class MainTrackDto /* extends JsonifiableDto */ implements MainTrack { "Overrides the game mode's settings to allow bhopping on this track" }) @IsBoolean() - readonly bhopEnabled: boolean; + @IsOptional() + readonly bhopEnabled?: boolean; } export class BonusTrackDto /* extends JsonifiableDto */ implements BonusTrack { @@ -201,7 +202,8 @@ export class BonusTrackDto /* extends JsonifiableDto */ implements BonusTrack { "Overrides the game mode's settings to allow bhopping on this track" }) @IsBoolean() - readonly bhopEnabled: boolean; + @IsOptional() + readonly bhopEnabled?: boolean; } export class MapTracksDto /* extends JsonifiableDto */ implements MapTracks { @@ -257,5 +259,6 @@ export class MapZonesDto /* extends JsonifiableDto */ implements MapZones { readonly tracks: MapTracksDto; @NestedProperty(GlobalRegionsDto, { required: false }) + @IsOptional() readonly globalRegions?: GlobalRegionsDto; }