Commit de23fe99 authored by Anton's avatar Anton

Minor cleanup in archive index

parent d6b1fb39
......@@ -38,6 +38,7 @@ const setupArchives = function (api, mapService, annotationService) {
user: req.user
}
const videosResult = await annotationService.findHandler(request)
if (videosResult.error) return send(res, videosResult.code)
data.annotations = data.annotations.concat(videosResult.data.items)
}
}
......@@ -49,8 +50,8 @@ const setupArchives = function (api, mapService, annotationService) {
upload.single('file')(req, res, async () => {
const results = await readArchive(req.file.path)
const
copy = req.body.title || false,
overrideAuthor = req.body.overrideAuthor === 'true' ? true : false
copy = typeof req.body.title === 'string',
overrideAuthor = req.body.overrideAuthor === 'true'
// skipAcl = req.body.skipAcl === 'true' ? true : false
let hasDuplicates = false
......
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