From 79dc19776530180f1b5a00a32ffda342656542a2 Mon Sep 17 00:00:00 2001 From: seo-wo <4nyth4me@gmail.com> Date: Wed, 13 Dec 2023 17:57:31 +0900 Subject: [PATCH] feat: get user imgaeUrl when signup, get image url as profile image #18 --- src/user/dto/create-user.dto.ts | 4 ++++ src/user/dto/signup-user.dto.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/user/dto/create-user.dto.ts b/src/user/dto/create-user.dto.ts index 25b13a1..69e67e0 100644 --- a/src/user/dto/create-user.dto.ts +++ b/src/user/dto/create-user.dto.ts @@ -15,4 +15,8 @@ export class CreateUserDto { @IsString() @IsNotEmpty() readonly googleId: string; + + @IsString() + @IsNotEmpty() + readonly imageUrl: string; } diff --git a/src/user/dto/signup-user.dto.ts b/src/user/dto/signup-user.dto.ts index 9c840da..4432089 100644 --- a/src/user/dto/signup-user.dto.ts +++ b/src/user/dto/signup-user.dto.ts @@ -8,4 +8,8 @@ export class SignUpUserDto { @IsOptional() @IsString() readonly slackId: string; + + @IsNotEmpty() + @IsString() + readonly imageUrl: string; }