Skip to content

Commit

Permalink
[Fix] 출석 response dto 응답 데이터 수정
Browse files Browse the repository at this point in the history
[Fix] 출석 response dto 응답 데이터 수정
  • Loading branch information
seungheon123 authored Nov 28, 2024
2 parents 949f643 + b517f91 commit ab83bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/api/src/member/dto/attendance-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ class AttendanceInfo {

export class AttendanceResponseDto {
@ApiProperty()
id: number;
memberId: number;
@ApiProperty({ type: AttendanceInfo, isArray: true })
attendances: AttendanceInfo[];

static of(memberId: number, attendances: Attendance[]): AttendanceResponseDto {
return {
id: memberId,
memberId: memberId,
attendances: attendances.map(attendance => ({
attendanceId: attendance.id,
date: this.formatDate(attendance.startTime),
startTime: this.formatTime(attendance.startTime),
endTime: this.formatTime(attendance.endTime),
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
env_file:
- .env

media:
container_name: media-camon
Expand Down

0 comments on commit ab83bc3

Please sign in to comment.