Skip to content

Commit

Permalink
refactor(profile/views/total-report-view): use total plays intead of …
Browse files Browse the repository at this point in the history
…total tracks
  • Loading branch information
Mnigos committed Oct 23, 2024
1 parent 923ff18 commit 6ff24da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/profile/[id]/views/total-report-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { StatCard } from '../reports/components/cards'

import type { ProfileOverviewViewProps } from './types/props'

import { BETA_USER_CREATED_AT } from '@app/profile/constants'
import {
getReportsTotalPlays,
getReportsTotalPlaytime,
getReportsTotalTracks,
} from '@app/api/fetchers/reports'
import { BETA_USER_CREATED_AT } from '@app/profile/constants'

namespace TotalReportView {
export type Props = Readonly<
Expand All @@ -28,7 +28,7 @@ async function TotalReportView({
userId,
after: createdAt ?? BETA_USER_CREATED_AT,
}),
getReportsTotalTracks(token, {
getReportsTotalPlays(token, {
userId,
after: createdAt ?? BETA_USER_CREATED_AT,
}),
Expand Down

0 comments on commit 6ff24da

Please sign in to comment.