Explorar o código

Update story gc

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
d32d05eed0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {