From 10fbe7f241b6f88d6c2c1527b7f157674bf9c452 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:36:56 -0500 Subject: [PATCH] Update ShowPlanes.php --- app/Http/Livewire/ShowPlanes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index 2e2b61e..ff79a79 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -344,7 +344,7 @@ class ShowPlanes extends Component $consulta->save(); Log_historial::create([ - 'user_id' => $cuentaPendiente->historial->cliente->id, + 'user_id' => $historial_cuenta->historial->vendedor_id, 'detalle' => 'La cuenta de ' . $servicioName . ' ha sido renovada y asignada desde pendiente, correo: ' . $historial_cuenta->cuenta->correo . ' contraseƱa: ' . $historial_cuenta->cuenta->password . ', al usuario ' . $cuentaPendiente->historial->cliente->name, ]); } @@ -488,7 +488,7 @@ class ShowPlanes extends Component $consulta->save(); Log_historial::create([ - 'user_id' => $cuentaPendiente->historial->cliente->id, + 'user_id' => $historial_cuenta->historial->vendedor_id, 'detalle' => 'La cuenta de ' . $servicioName . ' ha sido creada y asignada desde pendiente, correo: ' . $historial_cuenta->cuenta->correo . ' contraseƱa: ' . $historial_cuenta->cuenta->password . ', al usuario ' . $cuentaPendiente->historial->cliente->name, ]); }