From 17c9ebd577571a017784962af140793eeb6a9cbe Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Jan 2022 13:23:23 -0400 Subject: [PATCH] More typings --- src/routes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() }