Skip to content

Commit

Permalink
processPageHtml関数の引数を整理し、コードを簡潔にしました
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze committed Feb 20, 2025
1 parent 48f7907 commit 7d1c570
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ export async function editPageContentAction(
}
const { slug, title, pageContent } = parsedFormData.data;
const sourceLocale = await getLocaleFromHtml(pageContent, title);
await processPageHtml(
title,
pageContent,
slug,
currentUser.id,
sourceLocale,
);
await processPageHtml(title, pageContent, slug, currentUser.id, sourceLocale);

revalidatePath(`/user/${currentUser.handle}/page/${slug}`);
return { success: true, message: "Page updated successfully" };
Expand Down

0 comments on commit 7d1c570

Please sign in to comment.