Update LiveStreamController, clear chat cache when deleting stream

This commit is contained in:
Daniel Supernault 2022-06-26 19:50:40 -06:00
parent f51ffa7eab
commit f8e585c49a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -144,6 +144,7 @@ class LiveStreamController extends Controller
->get()
->each(function($stream) {
Storage::deleteDirectory("public/live-hls/{$stream->stream_id}");
LiveStreamService::clearChat($stream->profile_id);
$stream->delete();
});