From 4fb9a6b7378a7c7cb5d988e0fb7d7106b05762a3 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 1 Sep 2013 05:51:10 -0500 Subject: [PATCH] Fixed --- app/commands/RefreshCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands/RefreshCache.php b/app/commands/RefreshCache.php index 532bf393..40027d17 100644 --- a/app/commands/RefreshCache.php +++ b/app/commands/RefreshCache.php @@ -119,7 +119,7 @@ class RefreshCache extends Command { $resources[$type][$id] = $resource; } - foreach (DB::table('followers') as $follower) { + foreach (DB::table('followers')->get() as $follower) { $userResource = $this->getUserCacheItem($cacheItems, $follower->user_id, 'artist', $follower->artist_id); $userResource['is_followed'] = true; $cacheItems[$follower->user_id]['artist'][$follower->artist_id] = $userResource;