forgot to generate innertubeClient at the start

This commit is contained in:
Emilien Devos 2024-10-23 23:42:08 +02:00
parent 530b58ee92
commit 3a2d6e0997

View file

@ -17,7 +17,7 @@ if (konfigStore.get("jobs.youtube_session.enabled") as boolean) {
innertubeClient = await poTokenGenerate(innertubeClient, konfigStore);
});
} else {
await Innertube.create();
innertubeClient = await Innertube.create();
Deno.cron("regenerate visitordata", konfigStore.get("jobs.youtube_session.frequency") as string, async () => {
innertubeClient = await Innertube.create();
});