Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routers/auth.routers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ authRouter.get(
passport.authenticate('kakao', {failureRedirect: '/'}),
(req, res) => {
// 로그인 성공 시 처리
res.redirect('/'); // 온보딩 페이지로 리디렉션(예정)
res.redirect('/user/mypage'); // 온보딩 페이지로 리디렉션(예정)
},
/*
#swagger.tags = ['OAuth']
Expand Down
4 changes: 2 additions & 2 deletions src/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const updateUserName = async (id: bigint, name: string) => {
return await prisma.user
.update({
where: {id},
data: {name},
data: {name, status: 1},
})
.then(result => {
return {
Expand All @@ -27,7 +27,7 @@ export const updateUserGoalCount = async (id: bigint, goalCount: number) => {
return await prisma.user
.update({
where: {id},
data: {goalCount},
data: {goalCount, status: 1},
})
.then(result => {
return {
Expand Down