Skip to content

Commit 305dabc

Browse files
authored
Merge pull request #1 from PhearZero/patch-1
🪲 PouchDB - Cannot read property 'force' of undefined
2 parents 4e63c46 + 62ea461 commit 305dabc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@
134134
})
135135
},
136136
put: function(db, object, options) {
137-
return databases[db].put(object, options);
137+
return databases[db].put(object, options || {});
138138
},
139139
post: function(db, object, options) {
140-
return databases[db].post(object, options);
140+
return databases[db].post(object, options || {});
141141
},
142142
remove: function(db, object, options) {
143-
return databases[db].remove(object, options);
143+
return databases[db].remove(object, options || {});
144144
},
145145
get: function(db, object, options) {
146-
return databases[db].get(object, options);
146+
return databases[db].get(object, options || {});
147147
},
148148
session: {},
149149
errors: {},

0 commit comments

Comments
 (0)