diff --git a/website/script.js b/website/script.js index 20d519d..987d022 100644 --- a/website/script.js +++ b/website/script.js @@ -634,7 +634,7 @@ let points = await response.json(); for (let point of points) { - point.time = getDateTimeInGMT(point.date); + point.time = new Date(getDateTimeInGMT(point.date)); point.x = point.time.getTime(); point.year = point.time.getFullYear(); } diff --git a/workers/tiltify-cache/src/api.ts b/workers/tiltify-cache/src/api.ts index 203921a..014535a 100644 --- a/workers/tiltify-cache/src/api.ts +++ b/workers/tiltify-cache/src/api.ts @@ -175,6 +175,11 @@ async function getSummaryData(env: Env): Promise { ? `${campaign.node.description.slice(0, maxDescriptionLength)}...` : campaign.node.description; + // Skip campaigns without a user + if(!campaign.node.user?.id){ + continue; + } + campaignsComputed.push({ causeId: campaign.node.region?.id || null, name: campaign.node.name,