diff --git a/src/api/client.ts b/src/api/client.ts index 8a5dd93..582049a 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -21,7 +21,6 @@ export function post(url: string, data: unknown): Promise { return instance .post>(url, data) .then((response) => { - console.log(response.data); return response.data; }); } diff --git a/src/hooks/query/useFactCheck.ts b/src/hooks/query/useFactCheck.ts index 0c00c84..a8696fe 100644 --- a/src/hooks/query/useFactCheck.ts +++ b/src/hooks/query/useFactCheck.ts @@ -15,6 +15,8 @@ export type newsListType = { link: string; }; -export const postGetResult = (youtubeUrl: string): Promise => { - return post("/get-result", { url: youtubeUrl }); +export const postGetResult = async ( + youtubeUrl: string, +): Promise => { + return await post("/get-result", { url: youtubeUrl }); };