Commit 2628e343 authored by Anton's avatar Anton

Update sessions config constant

parent ecd3b729
...@@ -41,7 +41,7 @@ const fetchMetaData = async (videos, req, api) => { ...@@ -41,7 +41,7 @@ const fetchMetaData = async (videos, req, api) => {
return videos 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 let millisDist = secondsDist * 1000
annotations = annotations.map(annotation => resurrectAnnotation(annotation)).sort(Sorting.sortOnTarget) annotations = annotations.map(annotation => resurrectAnnotation(annotation)).sort(Sorting.sortOnTarget)
const videos = annotations.filter(anno => { return anno.body.type === 'Video' }) const videos = annotations.filter(anno => { return anno.body.type === 'Video' })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment