From: soufiane Date: Fri, 31 Oct 2025 11:42:19 +0000 (+0100) Subject: wait #7821 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f6e4ac0d8b43bad02b6638fb1a53587805f58964;p=fluidbook-toolbox.git wait #7821 --- diff --git a/app/Models/FluidbookPublication.php b/app/Models/FluidbookPublication.php index a2b8a1173..b2e2d8a68 100644 --- a/app/Models/FluidbookPublication.php +++ b/app/Models/FluidbookPublication.php @@ -363,7 +363,7 @@ class FluidbookPublication extends ToolboxStatusModel FluidbookSocialImage::dispatch($this); } - if(str_start_with($this->c_title, 'Hemsley Fraser -')) { + if(stripos($this->c_title, 'Hemsley Fraser -') === 0) { FluidbookCollection::updateHemsleyCollection([$this->id]); } @@ -1369,6 +1369,9 @@ class FluidbookPublication extends ToolboxStatusModel } public static function getFluidbooksHemsley() { - return static::where('c_title', 'LIKE', '%Hemsley Fraser -%')->pluck('id'); + return static::where('c_title', 'LIKE', '%Hemsley Fraser -%') + ->whereDate('created_at', '>', '2020-01-01') + ->orderBy('created_at','desc') + ->pluck('id'); } }