Update story gc

This commit is contained in:
Daniel Supernault 2021-09-04 01:59:50 -06:00
parent 84382c8aa9
commit d32d05eed0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

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