Odstranjeni kozmicni dogodki: stran, scheduler in API
This commit is contained in:
+2
-7
@@ -1,4 +1,4 @@
|
||||
import { generateDailyHoroscopes, generateCosmicEvents } from "./horoscope-generator";
|
||||
import { generateDailyHoroscopes } from "./horoscope-generator";
|
||||
|
||||
async function runDailyGeneration() {
|
||||
try {
|
||||
@@ -6,11 +6,6 @@ async function runDailyGeneration() {
|
||||
} catch (err: any) {
|
||||
console.error("[scheduler] Horoscope generation failed:", err.message);
|
||||
}
|
||||
try {
|
||||
await generateCosmicEvents();
|
||||
} catch (err: any) {
|
||||
console.error("[scheduler] Cosmic events generation failed:", err.message);
|
||||
}
|
||||
}
|
||||
|
||||
export function startDailyScheduler() {
|
||||
@@ -24,5 +19,5 @@ export function startDailyScheduler() {
|
||||
runDailyGeneration();
|
||||
}, SIX_HOURS);
|
||||
|
||||
console.log("[scheduler] Daily horoscope + cosmic events scheduler started.");
|
||||
console.log("[scheduler] Daily horoscope scheduler started.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user