diff --git a/src/public/index.php b/src/public/index.php index 1ff845c..f5f8d16 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -118,7 +118,7 @@ else ], 'download' => (object) [ - 'total' => $db->getMagnetDownloadsTotal($magnet->magnetId), + 'total' => $db->getMagnetDownloadsTotalByUserId($magnet->magnetId), 'status' => $db->findMagnetDownloadsTotalByUserId($magnet->magnetId, $userId), ], 'star' => (object)