Fix Pusher lib expecting empty object not array
This commit is contained in:
parent
1b1a23171d
commit
a0ea0617f5
|
|
@ -25,7 +25,7 @@ class FetchChannelsController extends Controller
|
||||||
return [
|
return [
|
||||||
'user_count' => count($channel->getUsers()),
|
'user_count' => count($channel->getUsers()),
|
||||||
];
|
];
|
||||||
})->toArray(),
|
})->toArray() ?: new \stdClass,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue