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 committed Oct 20, 2024
1 parent 20ddbd4 commit e2ca189
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/backend/src/app/dto/map/map-zones.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

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 e2ca189

Please sign in to comment.