diff --git a/package.json b/package.json index 56169e55..edde1492 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "jsonwebtoken": "^9.0.0", "lodash": "^4.17.15", "minimist": "^1.2.5", - "mongoose": "^8.0.0", + "mongoose": "^8.6.2", "ms": "^2.1.2", "node-fetch": "^3.3.1", "nodemailer": "^6.4.2", diff --git a/src/plugins/history.js b/src/plugins/history.js index f06d391a..a0586441 100644 --- a/src/plugins/history.js +++ b/src/plugins/history.js @@ -49,7 +49,6 @@ class HistoryRepository { /** @type {import('mongoose').PipelineStage[]} */ const aggregate = []; if (filter != null) { - // @ts-expect-error TS2322: promise aggregate.push({ $match: filter }); } aggregate.push(