Skip to content

Commit

Permalink
[BE#269] 학습 기록이 없는 경우 학습 시간 0을 반환하도록
Browse files Browse the repository at this point in the history
  • Loading branch information
victolee0 authored Nov 30, 2023
1 parent c864850 commit 6b988d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BE/src/study-logs/study-logs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ export class StudyLogsService {
}));

const result = {
total_time: (await this.calculateTotalTimes(user_id, date, date))[0],
total_time: (await this.calculateTotalTimes(user_id, date, date))[0] ?? 0,
categories,
};

return result;
}

Expand Down

0 comments on commit 6b988d7

Please sign in to comment.