Skip to content

Commit

Permalink
fix: create profile dto
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsmaki committed Aug 14, 2024
1 parent 69b5f3a commit ed83729
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/profile/dto/profile.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { IsNotEmpty, IsString } from "class-validator";
import { CreateProfileInput, UpdateProfileInput } from "src/graphql";

export class CreateProfileDto implements CreateProfileInput {
@IsString()
@IsNotEmpty()
userId: string;

@IsString()
first_name: string;

@IsString()
last_name: string;
}

export class UpdateProfileDto extends CreateProfileDto implements UpdateProfileInput {}
export class UpdateProfileDto extends CreateProfileDto implements UpdateProfileInput {
@IsString()
@IsNotEmpty()
userId: string;
}

0 comments on commit ed83729

Please sign in to comment.