Skip to content

Commit

Permalink
fix miss last name login with google
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiavohuynhdai committed Jan 28, 2024
1 parent 1ef290d commit 4ee1ef6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/auth/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class AuthService {
if (!user) {
user = await this.customerRepository.create({
firstName: payload.name,
lastName: '',
email: payload.email,
avatar: payload.picture,
googleUserId: googleUserId
Expand Down
2 changes: 1 addition & 1 deletion src/customer/schemas/customer.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Customer {
firstName: string

@ApiProperty()
@Prop({ type: String, maxlength: 30, required: true })
@Prop({ type: String, maxlength: 30, default: '' })
lastName: string

@ApiProperty()
Expand Down

0 comments on commit 4ee1ef6

Please sign in to comment.