hot fix
This commit is contained in:
commit
7e6a9a1602
@ -35,7 +35,7 @@ router.get("/", async function (req, res, next) {
|
|||||||
lose: user.lose || 0,
|
lose: user.lose || 0,
|
||||||
winRate: parseFloat(winRate.toFixed(2)), // 소수점 2자리까지 표시
|
winRate: parseFloat(winRate.toFixed(2)), // 소수점 2자리까지 표시
|
||||||
totalGames: totalGames,
|
totalGames: totalGames,
|
||||||
imageindex: user.profileImageIndex,
|
imageIndex: user.profileImageIndex,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
|
@ -22,7 +22,7 @@ router.post('/signup', async function (req, res, next) {
|
|||||||
var email = req.body.email;
|
var email = req.body.email;
|
||||||
var password = req.body.password;
|
var password = req.body.password;
|
||||||
var nickname = req.body.nickname;
|
var nickname = req.body.nickname;
|
||||||
var profileImageIndex = req.body.imageindex ?? 0;
|
var profileImageIndex = req.body.imageIndex ?? 0;
|
||||||
|
|
||||||
// 입력값 검증
|
// 입력값 검증
|
||||||
if( !email || !password || !nickname ){
|
if( !email || !password || !nickname ){
|
||||||
@ -95,7 +95,7 @@ router.post("/signin", async function (req, res, next) {
|
|||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
result: ResponseType.SUCCESS,
|
result: ResponseType.SUCCESS,
|
||||||
imageindex: existingUser.imageindex,
|
imageIndex: existingUser.imageIndex,
|
||||||
rating: existingUser.rating,
|
rating: existingUser.rating,
|
||||||
score: existingUser.score,
|
score: existingUser.score,
|
||||||
coins: existingUser.coins,
|
coins: existingUser.coins,
|
||||||
@ -240,7 +240,7 @@ router.get("/get-info", async function (req, res, next) {
|
|||||||
nickname: user.nickname,
|
nickname: user.nickname,
|
||||||
rating: user.rating,
|
rating: user.rating,
|
||||||
score: Number(user.score) || 0,
|
score: Number(user.score) || 0,
|
||||||
imageindex: Number(user.profileImageIndex)
|
imageIndex: Number(user.profileImageIndex)
|
||||||
})
|
})
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user