From 6cf1eac1a731c00049761f172c699d1529314963 Mon Sep 17 00:00:00 2001 From: sayliraut Date: Thu, 24 Apr 2025 12:54:09 +0530 Subject: [PATCH] change --- app/Services/AdminService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Services/AdminService.php b/app/Services/AdminService.php index 613c315..9d71f52 100644 --- a/app/Services/AdminService.php +++ b/app/Services/AdminService.php @@ -263,15 +263,15 @@ class AdminService if (!isset($data['tenant_id'])) { throw new \Exception('tenant_id is required'); } - static $counter = 1; - $email = "dummy{$counter}@example.com"; - $counter++; + // static $counter = 1; + // $email = "dummy{$counter}@example.com"; + // $counter++; // Prepare the payload with required fields $payload = [ - 'email' => $email, + 'email' => $data['email'] ?? '', 'authority' => $data['authority'] ?? 'CUSTOMER_USER', 'firstName' => $data['first_name'] ?? '', 'lastName' => $data['last_name'] ?? '', @@ -649,4 +649,4 @@ class AdminService throw new Exception('Failed to fetch users: ' . $response->body()); } } -} \ No newline at end of file +}