Skip to content

Commit fce0ffa

Browse files
authored
Merge pull request #313 from boostcampwm-2022/develop
v0.2.5 배포
2 parents 829999b + fd3af30 commit fce0ffa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fboostcampwm-2022%2Fweb21-devrank&count_bg=%23C455F9&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
44

5+
![nodejs](https://img.shields.io/badge/node-16.17.0-%23339933?style=flat&logo=Node.js)
6+
![nestjs](https://img.shields.io/badge/nest-9.1.4-%23E0234E?style=flat&logo=NestJS)
7+
![redis](https://img.shields.io/badge/redis-6.2.5-%23DC382D?style=flat&logo=Redis)
8+
![mongoDB](https://img.shields.io/badge/mongoDB-5.0.14-%2347A248?style=flat&logo=MongoDB)
9+
![docker](https://img.shields.io/badge/docker-20.10.21-%232496ED?style=flat&logo=Docker)
10+
511
![Frame 12023](https://user-images.githubusercontent.com/79798443/206137429-5cb1d269-4bec-4aaa-85ad-053ae564c625.png)
612

713
**_Devrank_** 는 게임과 유사한 등급 시스템과 랭킹을 제공하여, Github 활동시 사용자에게 성취감을 주고 오픈소스 활동을 장려하는 서비스 입니다.

backend/src/user/user.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class UserService {
8080
}
8181
const KR_TIME_DIFF = 9 * 60 * 60 * 1000;
8282
const utc = updatedUser.scoreHistory[updatedUser.scoreHistory.length - 1].date.getTime();
83-
if (new Date(utc + KR_TIME_DIFF).getDate() === new Date().getDate()) {
83+
if (new Date(utc + KR_TIME_DIFF).getDate() === new Date(new Date().getTime() + KR_TIME_DIFF).getDate()) {
8484
updatedUser.scoreHistory.pop();
8585
}
8686
updatedUser.scoreHistory.push({

0 commit comments

Comments
 (0)