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

Commit bc6006d

Browse files
committed
pass options to addOperation
1 parent 849595d commit bc6006d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"author": "Haad",
2222
"license": "MIT",
2323
"dependencies": {
24-
"orbit-db-store": "~2.7.0"
24+
"orbit-db-store": "orbitdb/orbit-db-store#feat/optional-pin"
2525
},
2626
"devDependencies": {
2727
"standard": "^12.0.1"

src/EventStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class EventStore extends Store {
1212
this._type = 'eventlog'
1313
}
1414

15-
add (data) {
15+
add (data, options = {}) {
1616
return this._addOperation({
1717
op: 'ADD',
1818
key: null,
1919
value: data
20-
})
20+
}, options)
2121
}
2222

2323
get (hash) {

0 commit comments

Comments
 (0)