Skip to content

Commit

Permalink
fix: vehicle-template importing material validation
Browse files Browse the repository at this point in the history
  • Loading branch information
anonym-HPI committed Jul 16, 2022
1 parent 27a71db commit b6627ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/src/models/vehicle-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class VehicleTemplate {
public readonly personnel: readonly PersonnelType[];

@IsArray()
@ValidateNested()
@Type(() => CanCaterFor)
@IsString({ each: true })
public readonly materials: readonly MaterialType[];

/**
Expand Down

0 comments on commit b6627ce

Please sign in to comment.