mirror of
https://github.com/apricote/Listory.git
synced 2026-02-08 02:37:03 +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
|
|
@ -100,13 +100,9 @@ export class ReportsService {
|
|||
async getTopArtists(
|
||||
options: GetTopArtistsReportDto
|
||||
): Promise<TopArtistsReportDto> {
|
||||
const { user, timePreset, customTimeStart, customTimeEnd } = options;
|
||||
const { user, time: timePreset } = options;
|
||||
|
||||
const interval = this.getIntervalFromPreset({
|
||||
timePreset,
|
||||
customTimeStart,
|
||||
customTimeEnd,
|
||||
});
|
||||
const interval = this.getIntervalFromPreset(timePreset);
|
||||
|
||||
const getArtistsWithCountQB = this.listensService
|
||||
.getScopedQueryBuilder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue