Skip to content

Commit e9f4fa9

Browse files
fix:added response
1 parent ab26737 commit e9f4fa9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/upload/page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ const Page = () => {
113113
void toast.promise(
114114
(async () => {
115115
try {
116-
const response = await axios.post("/api/upload", formData);
116+
const response = await axios.post<PostPDFToCloudinary>(
117+
"/api/upload",
118+
formData,
119+
);
117120

118121
setSlot("");
119122
setSubject("");
@@ -259,4 +262,4 @@ const Page = () => {
259262
);
260263
};
261264

262-
export default Page;
265+
export default Page;

0 commit comments

Comments
 (0)