diff --git a/src/LecueNote/api/postLecueNote.ts b/src/LecueNote/api/postLecueNote.ts index c2b05cec..c7917164 100644 --- a/src/LecueNote/api/postLecueNote.ts +++ b/src/LecueNote/api/postLecueNote.ts @@ -9,24 +9,20 @@ const postLecueNote = ({ isIconClicked, bookId, }: postLecueNoteProps) => { - const response = api - .post( - '/api/notes', - { - bookId: bookId, - content: contents, - textColor: color, - background: isIconClicked ? fileName : bgColor, + const response = api.post( + '/api/notes', + { + bookId: bookId, + content: contents, + textColor: color, + background: isIconClicked ? fileName : bgColor, + }, + { + headers: { + Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`, }, - { - headers: { - Authorization: `Bearer ${import.meta.env.VITE_APP_TOKEN}`, - }, - }, - ) - .then((res) => { - console.log(res); - }); + }, + ); return response; };