Fix Type Error
This commit is contained in:
parent
2be3824e3e
commit
09ce9c7917
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user