diff --git a/src/auth/services/auth.service.ts b/src/auth/services/auth.service.ts index 20ce38c..edec8df 100644 --- a/src/auth/services/auth.service.ts +++ b/src/auth/services/auth.service.ts @@ -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 diff --git a/src/customer/schemas/customer.schema.ts b/src/customer/schemas/customer.schema.ts index 3a61216..8e728a0 100644 --- a/src/customer/schemas/customer.schema.ts +++ b/src/customer/schemas/customer.schema.ts @@ -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()