This commit is contained in:
nelsonlaquet 2013-09-01 05:51:10 -05:00
parent 6d8c7d9a38
commit 4fb9a6b737

View file

@ -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;