diff --git a/frontend/controllers/FingerprintController.php b/frontend/controllers/FingerprintController.php index c43b18e..adbca3c 100644 --- a/frontend/controllers/FingerprintController.php +++ b/frontend/controllers/FingerprintController.php @@ -73,7 +73,7 @@ class FingerprintController extends Controller throw new NotFoundHttpException('Card not found:' . $id_card); } - $customer = Customer::findOne($card->customer); + $customer = Customer::findOne($card->customer->id_customer); if (!isset($customer)) { throw new NotFoundHttpException('Customer not found');