diff --git a/src/lib/sessions.js b/src/lib/sessions.js index 7caf248920049934df8eeac76764f18801bf8c80..49393c88ebf446bb7b0fc1d5cbb404482bbb48a7 100644 --- a/src/lib/sessions.js +++ b/src/lib/sessions.js @@ -41,7 +41,7 @@ const fetchMetaData = async (videos, req, api) => { return videos } -const groupBySessions = async function (annotations, req, api, secondsDist = constants.SESSION_DISTANCE_SECONDS) { +const groupBySessions = async function (annotations, req, api, secondsDist = constants.config.SESSION_DISTANCE_SECONDS) { let millisDist = secondsDist * 1000 annotations = annotations.map(annotation => resurrectAnnotation(annotation)).sort(Sorting.sortOnTarget) const videos = annotations.filter(anno => { return anno.body.type === 'Video' })