fix: await keepAlive

I forgot...
This commit is contained in:
2025-04-12 21:46:26 +07:00
parent 5189ed1472
commit be8a9650a1

View File

@ -26,7 +26,7 @@ async function spawn(context: BrowserContext, targetUrl: string) {
await targetInput.press("Enter");
// Keep-alive the page open for 5 minutes then refresh
if (targetUrl.startsWith("https://www.twitch.tv/")) {
twitch.keepAlive(page, spawnId);
await twitch.keepAlive(page, spawnId);
} else {
logger.warn(`[${spawnId}] Unsupported URL: ${targetUrl}`);
logger.warn(`[${spawnId}] Will try to keep alive, but no guarantees`);