Fix Type Error

This commit is contained in:
Benjamin Toby 2024-07-24 08:18:04 +01:00
parent 2be3824e3e
commit 09ce9c7917

View File

@ -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,