Skip to content

Commit

Permalink
Deploy Production Code for Commit 1214968 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Sep 1, 2024
1 parent 1214968 commit 2d6fe6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Sponsor {
websiteUrl: string | null;
};
createdAt: string;
privacyLevel: PrivacyLevel;
privacyLevel?: PrivacyLevel;
tier?: {
monthlyPriceInCents?: number;
};
Expand Down
5 changes: 3 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ function generateTemplate(response, action) {
const sponsorshipsAsMaintainer = data === null || data === void 0 ? void 0 : data.sponsorshipsAsMaintainer;
if (sponsorshipsAsMaintainer) {
/* Appends the template, the API call returns all users regardless of if they are hidden or not.
In an effort to respect a users decision to be anonymous we filter these users out. */
let filteredSponsors = sponsorshipsAsMaintainer.nodes.filter((user) => user.privacyLevel !== constants_1.PrivacyLevel.PRIVATE &&
In an effort to respect a users decision to be anonymous we filter these users out. */
let filteredSponsors = sponsorshipsAsMaintainer.nodes.filter((user) => user.privacyLevel &&
user.privacyLevel !== constants_1.PrivacyLevel.PRIVATE &&
(user.tier && user.tier.monthlyPriceInCents
? user.tier.monthlyPriceInCents
: 0) >= action.minimum);
Expand Down

0 comments on commit 2d6fe6e

Please sign in to comment.