From d32d05eed0662502d3ecb73d5159fd2c50ebad34 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 4 Sep 2021 01:59:50 -0600 Subject: [PATCH] Update story gc --- app/Console/Commands/StoryGC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/StoryGC.php b/app/Console/Commands/StoryGC.php index 8dd0aefce..1645ad885 100644 --- a/app/Console/Commands/StoryGC.php +++ b/app/Console/Commands/StoryGC.php @@ -51,7 +51,7 @@ class StoryGC extends Command protected function archiveExpiredStories() { $stories = Story::whereActive(true) - ->where('expires_at', '<', now()) + ->where('created_at', '<', now()->subHours(24)) ->get(); foreach($stories as $story) {