Nicer query

This commit is contained in:
snipe
2025-11-23 14:09:55 +00:00
parent 7f76198139
commit 7a1ccb0d53

View File

@@ -80,7 +80,7 @@ class LicenseSeatsController extends Controller
$this->authorize('view', License::class);
if ($licenseSeat = LicenseSeat::where('id',$seatId)->where('license_id', $licenseId)->first()) {
if ($licenseSeat = LicenseSeat::where('license_id', $licenseId)->find($seatId)) {
return (new LicenseSeatsTransformer)->transformLicenseSeat($licenseSeat);
}