1
0
Fork 0

Revert StoryController update

This commit is contained in:
Daniel Supernault 2020-01-08 20:34:49 -07:00
parent 70b98d9ace
commit e30823dbf2
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -106,8 +106,8 @@ class StoryController extends Controller
$stories = Story::with('profile')
->whereIn('profile_id', $following)
->groupBy(['id', 'profile_id'])
->where('expires_at', '>', now())
->groupBy('profile_id')
->orderByDesc('expires_at')
->take(9)
->get()