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

Commit 6db2c8c

Browse files
committed
Fix iterator has empty string values
1 parent 667654f commit 6db2c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class OrbitdbAPI extends Express {
137137
this.get('/db/:dbname/iterator', asyncMiddleware( async (req, res, next) => {
138138
let result, raw;
139139
raw = await rawiterator(req,res,next)
140-
result = raw.map((e) => e.payload.value)
140+
result = raw.map((e) => Object.keys(e.payload.value)[0])
141141
return res.json(result)
142142
}));
143143

0 commit comments

Comments
 (0)