From 3b5d51d478040b295d8183d24dbb9e8a426d6fb2 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 28 Aug 2023 11:40:03 +0300 Subject: [PATCH] group download totals by distinct userId --- src/public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)