Skip to content

Commit

Permalink
fix: 15초를 더하는데 아닌 15분을 더하는 오류 수정 (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonholim authored Dec 7, 2023
1 parent 9bb9a69 commit 626bd25
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions BackEnd/src/live-workouts/matches/matches.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ export class MatchesService {
);

const liveWorkoutStartTime = new Date();
liveWorkoutStartTime.setMinutes(
liveWorkoutStartTime.getSeconds() + MATCHING_DELAY,
liveWorkoutStartTime.setSeconds(
liveWorkoutStartTime.getSeconds() + 15,
);
const liveWorkoutStartTimeUTC = liveWorkoutStartTime.toISOString();
const kstTime = new Date(liveWorkoutStartTime.getTime() + (9 * 60 * 60 * 1000));
const liveWorkoutStartTimeUTC = kstTime.toISOString()
.replace(/T/, ' ')
.replace(/\..+/, '')
.slice(0, 19);

const multi = this.redis.multi();
for (const { publicId } of profiles) {
Expand Down

0 comments on commit 626bd25

Please sign in to comment.