diff --git a/app/controllers/collection-indexes-controller.js b/app/controllers/collection-indexes-controller.js index 8adcb2f7..a5df83b8 100644 --- a/app/controllers/collection-indexes-controller.js +++ b/app/controllers/collection-indexes-controller.js @@ -85,7 +85,7 @@ exports.updateFull = async function(req, res) { // Update the collection index try { - const collectionIndex = collectionIndexService.updateFull(id, collectionIndexData); + const collectionIndex = await collectionIndexService.updateFull(id, collectionIndexData); if (!collectionIndex) { return res.status(404).send('Collection index not found.'); } else {