Skip to content

Commit 2d6fe6e

Browse files
committed
Deploy Production Code for Commit 1214968 🚀
1 parent 1214968 commit 2d6fe6e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/constants.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface Sponsor {
4646
websiteUrl: string | null;
4747
};
4848
createdAt: string;
49-
privacyLevel: PrivacyLevel;
49+
privacyLevel?: PrivacyLevel;
5050
tier?: {
5151
monthlyPriceInCents?: number;
5252
};

lib/template.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ function generateTemplate(response, action) {
8888
const sponsorshipsAsMaintainer = data === null || data === void 0 ? void 0 : data.sponsorshipsAsMaintainer;
8989
if (sponsorshipsAsMaintainer) {
9090
/* Appends the template, the API call returns all users regardless of if they are hidden or not.
91-
In an effort to respect a users decision to be anonymous we filter these users out. */
92-
let filteredSponsors = sponsorshipsAsMaintainer.nodes.filter((user) => user.privacyLevel !== constants_1.PrivacyLevel.PRIVATE &&
91+
In an effort to respect a users decision to be anonymous we filter these users out. */
92+
let filteredSponsors = sponsorshipsAsMaintainer.nodes.filter((user) => user.privacyLevel &&
93+
user.privacyLevel !== constants_1.PrivacyLevel.PRIVATE &&
9394
(user.tier && user.tier.monthlyPriceInCents
9495
? user.tier.monthlyPriceInCents
9596
: 0) >= action.minimum);

0 commit comments

Comments
 (0)