summaryrefslogtreecommitdiff
path: root/src/app/(main)/(home)/actions.ts
diff options
context:
space:
mode:
authorBertrand Yuan <bert.yuan@outlook.com>2025-12-16 00:15:04 +0800
committerBertrand Yuan <bert.yuan@outlook.com>2025-12-16 00:15:04 +0800
commit785371bb3eccca455e5ce5fccbe9b6e3752a03f6 (patch)
treedd006593448c3500bdcb414af3b4656f7a7683d4 /src/app/(main)/(home)/actions.ts
parent02ae938c238c9d18448d17a8ec92c0edd8c17463 (diff)
fix(front-end): bug in viewing posts
Diffstat (limited to 'src/app/(main)/(home)/actions.ts')
-rw-r--r--src/app/(main)/(home)/actions.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/app/(main)/(home)/actions.ts b/src/app/(main)/(home)/actions.ts
index fdb16ca..5b0c456 100644
--- a/src/app/(main)/(home)/actions.ts
+++ b/src/app/(main)/(home)/actions.ts
@@ -1,8 +1,7 @@
'use server';
-import { getContact, sendWelcomeEmail, updateContact } from '@/lib/resend';
+import { getContact, updateContact } from '@/lib/resend';
import { ActionError, actionClient } from '@/lib/safe-action';
-import { getSortedByDatePosts } from '@/lib/source';
import { NewsletterSchema } from '@/lib/validators';
import { getSession } from '@/server/auth';
import { Resend } from 'resend';
@@ -59,12 +58,12 @@ export const subscribeUser = actionClient
);
}
- const posts = getSortedByDatePosts();
- await sendWelcomeEmail({
- posts,
- to: email,
- firstName: firstName || 'there',
- });
+ // const posts = getSortedByDatePosts();
+ // await sendWelcomeEmail({
+ // posts,
+ // to: email,
+ // firstName: firstName || 'there',
+ // });
return {
success: true,