Skip to content

Commit

Permalink
remove notice (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
davish authored Apr 6, 2023
1 parent 1919a33 commit 742ad9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/EventCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,12 @@ export default class EventCache {
return;
}

this.revalidating = true;
console.warn("Revalidating remote calendars...");
const remoteCalendars = [...this.calendars.values()].flatMap((c) =>
c instanceof RemoteCalendar ? c : []
);

console.warn("Revalidating remote calendars...");
this.revalidating = true;
const promises = remoteCalendars.map((calendar) => {
return calendar
.revalidate()
Expand Down Expand Up @@ -585,7 +586,7 @@ export default class EventCache {
Promise.allSettled(promises).then((results) => {
this.revalidating = false;
this.lastRevalidation = Date.now();
new Notice("All remote calendars have been fetched.");
console.debug("All remote calendars have been fetched.");
const errors = results.flatMap((result) =>
result.status === "rejected" ? result.reason : []
);
Expand Down

0 comments on commit 742ad9d

Please sign in to comment.