Vizzuality/landgriffon

View on GitHub
api/src/modules/sourcing-locations/dto/update.sourcing-location.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { PartialType } from '@nestjs/swagger';
import { CreateSourcingLocationDto } from 'modules/sourcing-locations/dto/create.sourcing-location.dto';
import { IsNotEmpty, IsUUID } from 'class-validator';

export class UpdateSourcingLocationDto extends PartialType(
  CreateSourcingLocationDto,
) {
  @IsNotEmpty()
  @IsUUID()
  updatedById: string;
}