diff --git a/app/repository/references-repository.js b/app/repository/references-repository.js index 1d0b264f..0bdb7be4 100644 --- a/app/repository/references-repository.js +++ b/app/repository/references-repository.js @@ -49,7 +49,7 @@ class ReferencesRepository { aggregation.push(facet); // Retrieve the documents - return await this.model.aggregate(aggregation); + return await this.model.aggregate(aggregation).exec(); } async save(data) {