Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncurtisyoga committed Dec 1, 2024
1 parent ac9d9b4 commit 479f9fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _lib/actions/newsletter.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import mailchimp from "@mailchimp/mailchimp_marketing";
import { z } from "zod";
import { newsletterFormSchema } from "@/_lib/schema";
import { NewsletterFormSchema } from "@/_lib/schema";
import { handleError } from "@/_lib/utils";
type Inputs = z.infer<typeof newsletterFormSchema>;
type Inputs = z.infer<typeof NewsletterFormSchema>;

export async function addNewsletterEntry(data: Inputs) {
// Validate form data
const formValidationResult = newsletterFormSchema.safeParse(data);
const formValidationResult = NewsletterFormSchema.safeParse(data);

if (formValidationResult.success === false) {
return { formErrors: formValidationResult.error.format() };
Expand Down

0 comments on commit 479f9fe

Please sign in to comment.