mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
refator: use TimeOptions for TopArtists report
This commit is contained in:
parent
ad0d197105
commit
5bc76f23d0
9 changed files with 62 additions and 46 deletions
|
|
@ -24,9 +24,9 @@ export class ReportsController {
|
|||
@Get("top-artists")
|
||||
@Auth()
|
||||
async getTopArtists(
|
||||
@Query() options: Omit<GetTopArtistsReportDto, "user">,
|
||||
@Query() time: ReportTimeDto,
|
||||
@ReqUser() user: User
|
||||
): Promise<TopArtistsReportDto> {
|
||||
return this.reportsService.getTopArtists({ ...options, user });
|
||||
return this.reportsService.getTopArtists({ user, time });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue