-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/campaign summaries (#311)
* #303 added paging params for donation list * #303 added count to response; added paging query dto * #303 fixed paging validation * #303 added http logger middleware * added aggregation on campaign vaults/donations; modified summary structure * renamed method * #310 extracted agg query to method; added donors to response * #310 added summary dto; better field names; fixed tests * #310 fixed the wrong amounts in summaries
- Loading branch information
Showing
3 changed files
with
119 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ApiProperty } from '@nestjs/swagger' | ||
import { Expose } from 'class-transformer' | ||
|
||
@Expose() | ||
export class CampaignSummaryDto { | ||
@ApiProperty() | ||
id: string | ||
|
||
@ApiProperty() | ||
reachedAmount: number | ||
|
||
@ApiProperty() | ||
currentAmount: number | ||
|
||
@ApiProperty() | ||
blockedAmount: number | ||
|
||
@ApiProperty() | ||
donors: number | ||
} |
ff9f1e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report
Test suite run success
172 tests passing in 62 suites.
Report generated by 🧪jest coverage report action from ff9f1e7