Skip to content

Commit

Permalink
fix: 🐛 type error
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hirano-ist committed Oct 14, 2024
1 parent a65dcce commit a7e87f5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/utils/format-for-line.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { createSelfNews } from "@/apis/prisma/fetch-news";
import type { ContentName } from "@/features/dump/types";
import type { ProfileSchema } from "@/features/profile/schemas/profile-schema";
import type { Status } from "@/features/update-status/types";
import type { UnwrapPromise } from "@/types";
import type { Role, Scope } from "@prisma/client";

export function formatChangeStatusMessage(
Expand All @@ -24,7 +22,12 @@ export function formatCreateNewsMessage({
quote,
url,
Category,
}: UnwrapPromise<ReturnType<typeof createSelfNews>>) {
}: {
title: string;
quote: string | null;
url: string;
Category: { name: string };
}) {
return `【NEWS】\n\nコンテンツ\ntitle: ${title} \nquote: ${quote} \nurl: ${url}\ncategory: ${Category.name}\nの登録ができました`;
}

Expand Down

0 comments on commit a7e87f5

Please sign in to comment.