From dc8d8ddef6cc0aed180e4b7b0585be3e6dfd2b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Tue, 17 Sep 2024 07:56:51 +0200 Subject: [PATCH] Fix pipeline type --- package.json | 2 +- src/plugins/history.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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(