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 () {
|
response.on("end", function () {
|
||||||
try {
|
try {
|
||||||
resolve(JSON.parse(str));
|
resolve(JSON.parse(str));
|
||||||
} catch (error) {
|
} catch (/** @type {any} */ error) {
|
||||||
reject({
|
reject({
|
||||||
error: error.message,
|
error: error.message,
|
||||||
result: str,
|
result: str,
|
||||||
|
Loading…
Reference in New Issue
Block a user