cambio en validacion

This commit is contained in:
Alejandro Tasistro 2024-07-17 17:25:08 -03:00
parent 42f0cc11d4
commit 0659f67e84
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,9 @@ class SubpedidoController extends Controller
$valid = request()->validate([
'total' => 'required|min:0',
'notas' => 'min:1',
'notas' => 'min:0'
]);
$subpedido->syncDevoluciones($valid['total'], $valid['notas']);
$subpedido->syncDevoluciones($valid['total'], $valid['notas'] ?? "");
return new SubpedidoResource($subpedido);
}