Skip to content

Commit

Permalink
refactor(general): update package-lock.json and fix stripeChargeHook
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed May 28, 2024
1 parent 1a2440d commit 2dad4a4
Show file tree
Hide file tree
Showing 2 changed files with 5,254 additions and 5,595 deletions.
2 changes: 1 addition & 1 deletion functions/src/webhooks/stripe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const addContributorToNewsletter = async (contributionRef: DocumentReference<Con
listId: NEWSLETTER_LIST_ID,
suppressionListId: NEWSLETTER_SUPPRESSION_LIST_ID,
});
const user = (await contributionRef.parent.doc().get()) as unknown as DocumentSnapshot<User>;
const user = (await contributionRef.parent.parent?.get()) as DocumentSnapshot<User>;
logger.info(
`Adding contributor ${user.id} (${user.get('email')}) to Sendgrid newsletter list (${NEWSLETTER_LIST_ID}).`,
);
Expand Down
Loading

0 comments on commit 2dad4a4

Please sign in to comment.