group download totals by distinct userId

This commit is contained in:
ghost 2023-08-28 11:40:03 +03:00
parent 4cc5443669
commit 3b5d51d478

View File

@ -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)