fix type error - v0.4.8 [skip-ci]
All checks were successful
Build SilverBullet Plug / build (push) Successful in 14s

This commit is contained in:
2026-02-25 05:49:23 -08:00
parent fc03f0e0de
commit 8710d92e3d
6 changed files with 19 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ import ICAL from "ical.js";
import { RRule, RRuleSet } from "rrule";
import { getUtcOffsetMs, resolveIanaName } from "./timezones.ts";
const VERSION = "0.4.7";
const VERSION = "0.4.8";
const CACHE_KEY = "icalendar:lastSync";
console.log(`[iCalendar] Plug script executing at top level (Version ${VERSION})`);
@@ -328,7 +328,7 @@ async function fetchAndParseCalendar(source: any, windowDays = 365, displayTimez
// First pass: map of UID -> Set of ISO strings for RECURRENCE-ID exceptions
const overrides = new Map<string, Set<string>>();
for (const vevent of vevents) {
const recId = vevent.getFirstPropertyValue("recurrence-id") as ICAL.Time | null;
const recId = vevent.getFirstPropertyValue("recurrence-id") as any | null;
const uid = vevent.getFirstPropertyValue("uid") as string | null;
if (recId && uid) {
if (!overrides.has(uid)) overrides.set(uid, new Set());