Skip to content

Commit ee184f5

Browse files
authored
Merge pull request #2 from rwl4/master
Added missing options argument to work with newer ShareDB.
2 parents 60120a7 + c1c0f2d commit ee184f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function rollback(client, done) {
2828

2929
// Persists an op and snapshot if it is for the next version. Calls back with
3030
// callback(err, succeeded)
31-
PostgresDB.prototype.commit = function(collection, id, op, snapshot, callback) {
31+
PostgresDB.prototype.commit = function(collection, id, op, snapshot, options, callback) {
3232
/*
3333
* op: CreateOp {
3434
* src: '24545654654646',
@@ -122,7 +122,7 @@ PostgresDB.prototype.commit = function(collection, id, op, snapshot, callback) {
122122
// Get the named document from the database. The callback is called with (err,
123123
// snapshot). A snapshot with a version of zero is returned if the docuemnt
124124
// has never been created in the database.
125-
PostgresDB.prototype.getSnapshot = function(collection, id, fields, callback) {
125+
PostgresDB.prototype.getSnapshot = function(collection, id, fields, options, callback) {
126126
pg.connect(this.pg_config, function(err, client, done) {
127127
if (err) {
128128
done(client);
@@ -172,7 +172,7 @@ PostgresDB.prototype.getSnapshot = function(collection, id, fields, callback) {
172172
// The version will be inferred from the parameters if it is missing.
173173
//
174174
// Callback should be called as callback(error, [list of ops]);
175-
PostgresDB.prototype.getOps = function(collection, id, from, to, callback) {
175+
PostgresDB.prototype.getOps = function(collection, id, from, to, options, callback) {
176176
pg.connect(this.pg_config, function(err, client, done) {
177177
if (err) {
178178
done(client);

0 commit comments

Comments
 (0)