Skip to content

Commit

Permalink
refactor: 이상한거 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoxong committed May 1, 2024
1 parent c5bc91e commit 5b12d34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/event/dto/create-event.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class CreateEventDto {

@ApiProperty({
description: '이벤트 입금 시작일',
example: new Date().toISOString(),
example: new Date(),
})
transactionStartDate: Date;

Expand Down
2 changes: 1 addition & 1 deletion src/group/group.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class GroupController {
return this.groupService.uploadTransactionFile(
groupId,
transactionExcel,
uploadTransactionDto.password, //이렇게하는게맞나..
uploadTransactionDto.password,
);
}

Expand Down
1 change: 0 additions & 1 deletion src/transaction/dto/create-transaction.dto.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/transaction/transaction.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5b12d34

Please sign in to comment.