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

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