From f037db29aa94e7be4c0297f5013203a3a0f9db8c Mon Sep 17 00:00:00 2001 From: Seth Etter Date: Sun, 14 Jun 2026 09:16:58 -0500 Subject: [PATCH] Don't reauth in once and onceEvent --- src/notifier.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/notifier.ts b/src/notifier.ts index b3079dd..66c6ccc 100644 --- a/src/notifier.ts +++ b/src/notifier.ts @@ -69,7 +69,6 @@ export async function newNotifier({ cfg, aborter, channels }: NotifierOpts): Pro // Single fetch-and-notify pass in the weekly digest format, then exit. async once(): Promise { - const tokens = await authenticate(cfg); const { events } = await getUpcomingEvents(cfg, tokens); for (const ch of channels) await ch.notifyMany(events); }, @@ -77,7 +76,6 @@ export async function newNotifier({ cfg, aborter, channels }: NotifierOpts): Pro // Single fetch, then send one event (first, or by slug) in the new-event // format, then exit. async onceEvent(slug?: string): Promise { - const tokens = await authenticate(cfg); const { events } = await getUpcomingEvents(cfg, tokens); if (events.length === 0) throw new Error("no upcoming events found"); -- 2.51.2