Skip to content

Commit

Permalink
chore: 임시 테스트 작성 및 console.log 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Feb 5, 2024
1 parent e6d9e91 commit 63df5a0
Show file tree
Hide file tree
Showing 6 changed files with 1,019 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/auth/kakaoAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const getKakaoLogin = async (req: Request, res: Response) => {
console.log(userData);
return res.status(200).send(userData);
} catch (err) {
console.log("error");
console.log("loginerror", err);
res.status(401).send("Unauthorized");
}
};
Expand Down
1 change: 0 additions & 1 deletion backend/src/controllers/post/getRecentPosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const getRecentPosts = async (
});
res.status(200).json(postsWithLikeStatus);
} catch (err) {
console.log(err);
return res
.status(500)
.json({ error: "Recent Posts Internal Server Error " });
Expand Down
1 change: 0 additions & 1 deletion backend/src/utils/getUserObjectId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const getUserObjectId = async (
).lean();
return userData?._id;
} catch (err) {
console.log("getUserObjectId error", err);
return null;
}
};
1 change: 1 addition & 0 deletions frontend/src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function useAuth() {
const handleLogout = useContext(LogoutContext);

const login = async () => {
console.log(search);
if (search === null) {
toast.error("유효하지 않은 로그인 코드입니다.");
router.replace("/");
Expand Down
Loading

0 comments on commit 63df5a0

Please sign in to comment.