mirror of
https://github.com/SrIzan10/hctv.git
synced 2026-06-06 00:56:56 +00:00
fix: jenin changes
This commit is contained in:
@@ -181,12 +181,14 @@ app.get(
|
||||
isBot: ws.chatUser.isBot || false,
|
||||
},
|
||||
message,
|
||||
msgId: `${crypto.randomUUID()}`
|
||||
};
|
||||
|
||||
const redisObj = {
|
||||
user: msgObj.user,
|
||||
message: msgObj.message,
|
||||
type: 'message',
|
||||
msgId: `${crypto.randomUUID()}`,
|
||||
};
|
||||
|
||||
const redisStr = JSON.stringify(redisObj);
|
||||
|
||||
@@ -33,7 +33,6 @@ export async function GET(request: NextRequest) {
|
||||
},
|
||||
take: 50,
|
||||
});
|
||||
console.log(channels)
|
||||
return Response.json(channels);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,10 +50,6 @@ export async function initializeStreamInfo(channelId?: string) {
|
||||
|
||||
export async function syncStream() {
|
||||
try {
|
||||
if (!process.env.MEDIAMTX_API) {
|
||||
console.error('MEDIAMTX_API environment variable is not set');
|
||||
return;
|
||||
}
|
||||
const regions = Object.keys(MEDIAMTX_SERVER_REGIONS) as Array<
|
||||
keyof typeof MEDIAMTX_SERVER_REGIONS
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user