Closed kenu closed 3 years ago
setTimeout도 clear해주어야한다.
const timeout = new Promise((resolve, reject) => {
setTimeout(() => resolve(‘timeout’), 1000);
});
Promise.all([axios.get(uri, headers), get42UserCoalition(username, headers), timeout])
.then((data)=>{
const one = {…data[0], 'coalition’: data[1]}
ObjectUtils.calcDiff(one.projects_users, 'marked_at');
await User.save(one);
res.render('user', {
user: one,
updatedAt: dayjs().format('YYYY/MM/DD HH:mm:ss'),
dayjs
});
})
.catch(e=>{
const error = new Error(e.message);
console.log(e.message);
error.status = e.response.status;
if (error.status === 401) {
res.redirect('/login/42');
return;
}
next(error);
})
Request failed with status code 429
@hochan222 sonarqube 확인 필요 참고: https://github.com/kenu/okdevtv
전체 현황
if 문 curly brace 제거 => 오.. 오류를 잡아냅니다!!?!
if 문 curly brace 추가
그외 코드줄수도 체크해주는 우리의 soarqube
LGTM!