diff --git a/src/routes.js b/src/routes.js index 1fa7811c..49e12a86 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2535,7 +2535,9 @@ module.exports = async ( * @type {import('winston').QueryOptions} */ const options = { - from: new Date() - 1 * 60 * 60 * 1000, + // @ts-expect-error Winston's typings don't account for supporting + // numbers here. + from: (new Date()).valueOf() - 1 * 60 * 60 * 1000, until: new Date() }