[misc] run format_fix and lint:fix

This commit is contained in:
Jakob Ackermann
2021-07-13 12:04:48 +01:00
parent 679ea1616c
commit 540b52c128
23 changed files with 394 additions and 387 deletions
+15 -14
View File
@@ -98,19 +98,20 @@ module.exports = HttpController = {
getAllDeletedDocs(req, res, next) {
const { project_id } = req.params
logger.log({ project_id }, 'getting all deleted docs')
DocManager.getAllDeletedDocs(project_id, { name: true }, function (
error,
docs
) {
if (error) {
return next(error)
DocManager.getAllDeletedDocs(
project_id,
{ name: true },
function (error, docs) {
if (error) {
return next(error)
}
res.json(
docs.map(doc => {
return { _id: doc._id.toString(), name: doc.name }
})
)
}
res.json(
docs.map((doc) => {
return { _id: doc._id.toString(), name: doc.name }
})
)
})
)
},
getAllRanges(req, res, next) {
@@ -185,7 +186,7 @@ module.exports = HttpController = {
}
return res.json({
modified,
rev
rev,
})
}
)
@@ -304,5 +305,5 @@ module.exports = HttpController = {
return res.sendStatus(200)
}
})
}
},
}