From 7f690a6238d61ea145e00e602ff9dccf43bb4341 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 19 Sep 2024 15:58:32 +0100 Subject: [PATCH] Fixed variable name Signed-off-by: snipe --- app/Http/Transformers/LicensesTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Transformers/LicensesTransformer.php b/app/Http/Transformers/LicensesTransformer.php index 4fad9b9a68..b30b603016 100644 --- a/app/Http/Transformers/LicensesTransformer.php +++ b/app/Http/Transformers/LicensesTransformer.php @@ -37,7 +37,7 @@ class LicensesTransformer 'notes' => Helper::parseEscapedMarkedownInline($license->notes), 'expiration_date' => Helper::getFormattedDateObject($license->expiration_date, 'date'), 'seats' => (int) $license->seats, - 'free_seats_count' => (int) $license->free_seats_count, + 'free_seats_count' => (int) $license->free_seat_count, 'min_amt' => ($license->min_amt) ? (int) ($license->min_amt) : null, 'license_name' => ($license->license_name) ? e($license->license_name) : null, 'license_email' => ($license->license_email) ? e($license->license_email) : null, @@ -52,7 +52,7 @@ class LicensesTransformer 'created_at' => Helper::getFormattedDateObject($license->created_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($license->updated_at, 'datetime'), 'deleted_at' => Helper::getFormattedDateObject($license->deleted_at, 'datetime'), - 'user_can_checkout' => (bool) ($license->free_seats_count > 0), + 'user_can_checkout' => (bool) ($license->free_seat_count > 0), ];