Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit c23cddf

Browse files
author
haydenyoung
committed
Fix undeclared content.
1 parent e89ff99 commit c23cddf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ class OrbitdbAPI {
220220
path: '/db/{dbname}/all',
221221
handler: dbMiddleware( async (db, _request, _h) => {
222222
if (typeof db._query == 'function') {
223+
let contents
223224
contents = db._query({limit:-1})
224225
return contents.map((e) => Object.keys(e.payload.value)[0])
225226
} else {

0 commit comments

Comments
 (0)