Skip to content

Commit 9515b3f

Browse files
committed
Fix game announcements
1 parent ff7844d commit 9515b3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/app/Services/APIService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static function getUnseenNotifications()
262262

263263
public static function getAnnouncements(Game $game=null)
264264
{
265-
return Cache::remember('thread:announcements-'.(isset($game) ? $game->id : 0), 60, function() {
265+
return Cache::remember('thread:announcements-'.(isset($game) ? $game->id : 0), 60, function() use ($game) {
266266
$announcements = Thread::where('forum_id', isset($game) ? $game->forum_id : 1)->where('announce', true)->get();
267267

268268
$now = Carbon::now();

0 commit comments

Comments
 (0)