mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Merge branch 'customer' into 'master'
Fix customer email already exist validation when edit customer See merge request mohit.panjvani/crater-web!71
This commit is contained in:
@ -160,6 +160,7 @@ class CustomersController extends Controller
|
||||
if ($verifyEmail) {
|
||||
if ($verifyEmail->id !== $customer->id) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'error' => 'Email already in use'
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user