From 33a4c88c3abc6f96368d2ca651df24a0f018185a Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 17 Sep 2025 11:44:28 +0100 Subject: [PATCH] Added table to deleted_at clauses to resolve ambiguity --- app/Models/License.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/License.php b/app/Models/License.php index d84f42f0a1..8630080d14 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -724,7 +724,7 @@ class License extends Depreciable public static function getExpiringLicenses($days = 60) { - return self::whereNull('deleted_at') + return self::whereNull('licenses.deleted_at') // The termination date is null or within range ->where(function ($query) use ($days) { @@ -752,7 +752,7 @@ class License extends Depreciable public function scopeActiveLicenses($query) { - return $query->whereNull('deleted_at') + return $query->whereNull('licenses.deleted_at') // The termination date is null or within range ->where(function ($query) { @@ -768,7 +768,7 @@ class License extends Depreciable public function scopeExpiredLicenses($query) { - return $query->whereNull('deleted_at') + return $query->whereNull('licenses.deleted_at') // The termination date is null or within range ->where(function ($query) {