Skip to content

Commit

Permalink
More Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
no1mann committed Dec 1, 2024
1 parent 911cbc4 commit 91898e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
5 changes: 5 additions & 0 deletions workers/tiltify-cache/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ async function getSummaryData(env: Env): Promise<ApiResponse> {
? `${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,
Expand Down

0 comments on commit 91898e2

Please sign in to comment.