Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed Dec 29, 2024
1 parent be85fec commit 427756f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions functions/src/cron/first-payout-email/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ export default onSchedule({ schedule: '0 15 16 * *', memory: '2GiB' }, async ()
const firstPayoutEmailReceivers = await getFirstPayoutEmailReceivers(firestoreAdmin, fromDate, toDate);

await Promise.all(
firstPayoutEmailReceivers.map(async (entry) => {
const { email, language, templateData } = entry;
firstPayoutEmailReceivers.map(async ({ email, language, templateData }) => {
await sendgridClient.sendFirstPayoutEmail(email, language, templateData);
}),
);
Expand Down
2 changes: 2 additions & 0 deletions functions/src/webhooks/stripe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const addContributorToNewsletter = async (contributionRef: DocumentReference<Con
/**
* Stripe webhook to ingest charge events into firestore.
* Adds the relevant information to the user's contributions subcollection.
* To test this in local development, you can use the Stripe CLI:
* stripe listen --forward-to http://127.0.0.1:5001/demo-social-income-local/europe-west6/stripeChargeHook
*/
export default onRequest(async (request, response) => {
const firestoreAdmin = new FirestoreAdmin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function Page({ params: { lang, region, session } }: Stripe
<Typography size="4xl" color="accent" weight="bold">
{translator.t('success.title')}
</Typography>
<Card>
<Card className="theme-light">
<CardHeader>
<Typography weight="bold" size="xl" className="my-4">
{translator.t('success.user-form.title')}
Expand Down

0 comments on commit 427756f

Please sign in to comment.