Improve event assertions

This commit is contained in:
Marcus Moore
2024-05-22 15:38:23 -07:00
parent 1fe22e4b7b
commit f16c79bb9a
2 changed files with 10 additions and 10 deletions
@@ -852,12 +852,9 @@ class AssetsController extends Controller
}
$checkout_at = request('checkout_at', date('Y-m-d H:i:s'));
// @todo: test this
$expected_checkin = request('expected_checkin', null);
// @todo: test this
$note = request('note', null);
// Using `->has` preserves the asset name if the name parameter was not included in request.
// @todo: test this
$asset_name = request()->has('name') ? request('name') : $asset->name;
// Set the location ID to the RTD location id if there is one