Browse Source

group download totals by distinct userId

main
ghost 1 year ago
parent
commit
3b5d51d478
  1. 2
      src/public/index.php

2
src/public/index.php

@ -118,7 +118,7 @@ else
], ],
'download' => (object) 'download' => (object)
[ [
'total' => $db->getMagnetDownloadsTotal($magnet->magnetId), 'total' => $db->getMagnetDownloadsTotalByUserId($magnet->magnetId),
'status' => $db->findMagnetDownloadsTotalByUserId($magnet->magnetId, $userId), 'status' => $db->findMagnetDownloadsTotalByUserId($magnet->magnetId, $userId),
], ],
'star' => (object) 'star' => (object)

Loading…
Cancel
Save