Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 9196635

Browse files
authored
Enabled the metrics for downloads and views on a preprint (#2558)
- Ticket: [ENG-7941] - Feature flag: n/a ## Purpose Enabled the metrics for downloads and views on a preprint ## Summary of Changes Removed the comments around the code to include the metrics. [ENG-7941]: https://openscience.atlassian.net/browse/ENG-7941
1 parent 542d661 commit 9196635

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app/preprints/detail/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,12 @@ export default class PreprintsDetail extends Route {
6363
const preprint = await this.store.findRecord('preprint', guid, {
6464
reload: true,
6565
include: embeddableFields,
66-
/*
6766
adapterOptions: {
6867
query: {
6968
'metrics[views]': 'total',
7069
'metrics[downloads]': 'total',
7170
},
7271
},
73-
*/
7472
});
7573

7674
const provider = await preprint?.get('provider');

0 commit comments

Comments
 (0)