mirror of
https://github.com/SrIzan10/hctv.git
synced 2026-06-06 00:56:56 +00:00
fix(ts): region typescript issue
This commit is contained in:
@@ -90,6 +90,11 @@ export async function syncStream() {
|
||||
|
||||
for (const r of regions) {
|
||||
const region = MEDIAMTX_SERVER_REGIONS[r];
|
||||
if (!region) {
|
||||
// continuing bc of the next if check
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!region.apiAuthHeader) {
|
||||
throw new Error('MEDIAMTX_API_KEY is required when querying the MediaMTX API');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user