Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Oct 24, 2024
1 parent 0cee78b commit 33c4791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { CodepenChallengesEmail } from '@my-repo/transactional/emails/CodepenCha
const resend = new Resend(process.env.RESEND_KEY);

export async function sendCodePenChallenges() {
const HTML = render(CodepenChallengesEmail());
const HTML = await render(<CodepenChallengesEmail/>);

await resend.emails.send({
from: '[email protected]',
from: 'Acme <[email protected]>',
to: '[email protected]',
subject: 'Codepen challenges of the moment',
html: HTML
Expand Down
2 changes: 1 addition & 1 deletion apps/next-app/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { sendCodePenChallenges } from '@/serverActions/sendEmail';
import { sendCodePenChallenges } from '@/actions/send-email';

import './style.css';

Expand Down

0 comments on commit 33c4791

Please sign in to comment.