Browse Source

Update story gc

Daniel Supernault 3 năm trước cách đây
mục cha
commit
d32d05eed0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()
 	protected function archiveExpiredStories()
 	{
 	{
 		$stories = Story::whereActive(true)
 		$stories = Story::whereActive(true)
-		->where('expires_at', '<', now())
+		->where('created_at', '<', now()->subHours(24))
 		->get();
 		->get();
 
 
 		foreach($stories as $story) {
 		foreach($stories as $story) {