Skip to content

Commit

Permalink
refact : signup phone
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Feb 18, 2024
1 parent d92652d commit e30a1f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions graphql/schemas/Ecosystem/user.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ input RegisterInput {
password: String! @rules(apply: ["required", "min:8"])
password_confirmation: String! @rules(apply: ["required"])
company_name: String
phone_number: String
custom_fields: [CustomFieldEntityInput!]
}

Expand Down
3 changes: 2 additions & 1 deletion src/Kanvas/Auth/DataTransferObject/RegisterInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public static function viaRequest(Request $request): self
password: Hash::make($request->get('password')),
default_company: $request->get('default_company') ?? null,
role_ids: $roles,
custom_fields: $request->get('custom_fields') ?? []
custom_fields: $request->get('custom_fields') ?? [],
phone_number: $request->get('phone_number') ?? null,
);
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Connectors/Integration/Zoho/LeadActivityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public function testLeadCreationWorkflow(): void

$zohoService = new ZohoService($app, $company);
$zohoService->deleteLead($lead);
$zohoService->leads->delete($result['leadId']);


$this->assertArrayHasKey('zohoLeadId', $result);
$this->assertArrayHasKey('zohoRequest', $result);
Expand Down

0 comments on commit e30a1f3

Please sign in to comment.