This commit is contained in:
Rizky 2024-06-25 16:18:06 +07:00
parent 5e0460eb9c
commit fb9ff31a29
1 changed files with 11 additions and 1 deletions

View File

@ -183,5 +183,15 @@ export const fetchSendDb = async (params: any, dburl: string) => {
}
}
return await cached.promise;
if (cached.result) return cached.result;
let result = await cached.promise;
if (result) {
try {
return JSON.parse(result);
} catch (e) {
console.error("DBQuery failed:" + result);
}
}
return null;
};