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

Commit e3f13e1

Browse files
JRoper18aphelionz
authored andcommitted
PutAll() handling fix
PutAll() successfully adds the records to orbitdb, but they aren't added correctly to the index and can't be get()ed. This should fix that.
1 parent b522ab2 commit e3f13e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/DocumentIndex.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ class DocumentIndex {
1818
if (handled[doc.key] !== true) {
1919
handled[doc.key] = true
2020
this._index[doc.key] = {
21-
op: item.payload.op,
22-
key: doc.key,
23-
value: doc.value
21+
payload: {
22+
op: 'PUT',
23+
key: doc.key,
24+
value: doc.value
25+
}
2426
}
2527
}
2628
}

0 commit comments

Comments
 (0)