Update story gc

pull/2900/head
Daniel Supernault 4 years ago
parent 84382c8aa9
commit d32d05eed0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save