use new reporting endpoint

fixes #1698 at least for now
This commit is contained in:
Thomas Zarebczan 2022-06-23 08:47:34 -04:00 committed by GitHub
parent 7cbb7a54aa
commit 29b2a8aeff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ export default function CreatorAnalytics(props: Props) {
React.useEffect(() => {
if (claimId && channelForEffect && channelHasClaims) {
setFetchingStats(true);
Lbryio.call('reports', 'content', { claim_id: claimId })
Lbryio.call('channel', 'stats', { claim_id: claimId })
.then((res) => {
setFetchingStats(false);
setStats(res);