Skip to content

Commit 16ef26a

Browse files
authored
Merge pull request #138 from part3-4team-Taskify/MINJI121-patch-1
[Fix] CardType 이름 변경이 api 파일에 반영되지 않은 점 수정
2 parents 339f5b0 + 3c70698 commit 16ef26a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/card.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import axiosInstance from "./axiosInstance";
2-
import type { CardType } from "@/types/cards"; // Dashboard 타입 import
2+
import type { CardDetailType } from "@/types/cards"; // Dashboard 타입 import
33
import { apiRoutes } from "@/api/apiRoutes";
44

55
/** 1. 카드 이미지 업로드 */
@@ -136,12 +136,12 @@ export const getCardsByColumn = async ({
136136
};
137137

138138
// 카드 상세 조회
139-
export async function getCardDetail(cardId: number): Promise<CardType> {
139+
export async function getCardDetail(cardId: number): Promise<CardDetailType> {
140140
try {
141141
// apiRoutes를 사용하여 URL 동적 생성
142142
const url = apiRoutes.cardDetail(cardId);
143143
const response = await axiosInstance.get(url);
144-
return response.data as CardType;
144+
return response.data as CardDetailType;
145145
} catch (error) {
146146
console.error("대시보드 데이터를 불러오는 데 실패했습니다.", error);
147147
throw error;

0 commit comments

Comments
 (0)