瀏覽代碼

Update story gc

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