diff --git a/src/event/dto/create-event.dto.ts b/src/event/dto/create-event.dto.ts index 4968db1..492fc6b 100644 --- a/src/event/dto/create-event.dto.ts +++ b/src/event/dto/create-event.dto.ts @@ -27,7 +27,7 @@ export class CreateEventDto { @ApiProperty({ description: '이벤트 입금 시작일', - example: new Date().toISOString(), + example: new Date(), }) transactionStartDate: Date; diff --git a/src/group/group.controller.ts b/src/group/group.controller.ts index 2e6809f..74def6c 100644 --- a/src/group/group.controller.ts +++ b/src/group/group.controller.ts @@ -106,7 +106,7 @@ export class GroupController { return this.groupService.uploadTransactionFile( groupId, transactionExcel, - uploadTransactionDto.password, //이렇게하는게맞나.. + uploadTransactionDto.password, ); } diff --git a/src/transaction/dto/create-transaction.dto.ts b/src/transaction/dto/create-transaction.dto.ts deleted file mode 100644 index 6f59387..0000000 --- a/src/transaction/dto/create-transaction.dto.ts +++ /dev/null @@ -1 +0,0 @@ -export class CreateTransactionDto {} diff --git a/src/transaction/transaction.repository.ts b/src/transaction/transaction.repository.ts index 83a5df4..820caf5 100644 --- a/src/transaction/transaction.repository.ts +++ b/src/transaction/transaction.repository.ts @@ -28,8 +28,8 @@ export class TransactionRepository { .find({ 'metadata.groupId': groupId, timestamp: { - $gte: new Date(startDate).toISOString(), - $lt: new Date(endDate).toISOString(), + $gte: new Date(startDate), + $lt: new Date(endDate), }, }) .exec();