Skip to content

Commit

Permalink
fix(back): Mark allow bhop regions as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
GordiNoki authored and tsa96 committed Oct 22, 2024
1 parent 229d442 commit 975d8e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/backend/src/app/dto/map/map-zones.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -257,5 +259,6 @@ export class MapZonesDto /* extends JsonifiableDto */ implements MapZones {
readonly tracks: MapTracksDto;

@NestedProperty(GlobalRegionsDto, { required: false })
@IsOptional()
readonly globalRegions?: GlobalRegionsDto;
}

0 comments on commit 975d8e7

Please sign in to comment.