correct linkBankAccount replace search on id_user with search on user_code

This commit is contained in:
root 2026-03-04 14:05:38 +01:00
parent c7562e932a
commit 2c4032729f
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ INNER JOIN countries c ON oc.id_country = c.id INNER JOIN type_operators top ON
}
// Récupérer toutes les demandes pour cet utilisateur et cet opérateur
$existingRequests = UsersBankingAccountVerification::where('id_user', $user->id)
$existingRequests = UsersBankingAccountVerification::where('user_code', $user->user_code)
->where('id_bank_country', $request->id_bank)
->get();