Update LiveStreamController, clear chat after stream ends

pull/3562/head
Daniel Supernault 2022-06-26 19:37:05 -06:00
rodzic 020f810a7e
commit f51ffa7eab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -389,6 +389,8 @@ class LiveStreamController extends Controller
$stream = LiveStream::whereStreamId($name)->whereStreamKey($url['key'])->firstOrFail();
LiveStreamService::clearChat($stream->profile_id);
if(config('livestreaming.broadcast.delete_token_after_finished')) {
$stream->delete();
} else {

Wyświetl plik

@ -39,7 +39,7 @@ class LiveStreamService
return Redis::lrem($key, 0, $val);
}
public static function clearChat($id, $val)
public static function clearChat($id)
{
$key = self::CACHE_KEY . 'chat:' . $id;
return Redis::del($key);