fix: default to in-memory db only on db read fail (#155)

This commit is contained in:
Alejandro 2023-01-28 12:02:47 +01:00 committed by GitHub
parent a9cbcaad79
commit 1b54f5a902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -12,7 +12,6 @@ export function useQuery(query: string, limit: number = 5) {
() => db.query(query)
.catch((err) => {
console.error(err)
}).then(() => {
return inMemoryDb.query(query)
}),
[query],