Преглед изворни кода

fix(core): Make firstName and lastName required in CreateCustomerAndUser method (#2996)

Ahmet TOK пре 1 година
родитељ
комит
0d8054d898

+ 4 - 4
packages/core/src/service/helpers/external-authentication/external-authentication.service.ts

@@ -94,10 +94,10 @@ export class ExternalAuthenticationService {
         config: {
             strategy: string;
             externalIdentifier: string;
-            verified: boolean;
             emailAddress: string;
-            firstName?: string;
-            lastName?: string;
+            firstName: string;
+            lastName: string;
+            verified?: boolean;
         },
     ): Promise<User> {
         let user: User;
@@ -206,7 +206,7 @@ export class ExternalAuthenticationService {
             }),
         );
 
-        return newUser;
+        return savedUser;
     }
 
     async findUser(