Daniel Supernault пре 3 година
родитељ
комит
d32d05eed0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Console/Commands/StoryGC.php

+ 1 - 1
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) {