From 09ce9c791728b0986505848963c2be88cce088a6 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Wed, 24 Jul 2024 08:18:04 +0100 Subject: [PATCH] Fix Type Error --- utils/get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/get.js b/utils/get.js index 7cd9cf6..fbce7c1 100644 --- a/utils/get.js +++ b/utils/get.js @@ -135,7 +135,7 @@ async function get({ key, db, query, queryValues, tableName }) { response.on("end", function () { try { resolve(JSON.parse(str)); - } catch (error) { + } catch (/** @type {any} */ error) { reject({ error: error.message, result: str,