Skip to content

Added missing options argument to work with newer ShareDB. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function rollback(client, done) {

// Persists an op and snapshot if it is for the next version. Calls back with
// callback(err, succeeded)
PostgresDB.prototype.commit = function(collection, id, op, snapshot, callback) {
PostgresDB.prototype.commit = function(collection, id, op, snapshot, options, callback) {
/*
* op: CreateOp {
* src: '24545654654646',
Expand Down Expand Up @@ -122,7 +122,7 @@ PostgresDB.prototype.commit = function(collection, id, op, snapshot, callback) {
// Get the named document from the database. The callback is called with (err,
// snapshot). A snapshot with a version of zero is returned if the docuemnt
// has never been created in the database.
PostgresDB.prototype.getSnapshot = function(collection, id, fields, callback) {
PostgresDB.prototype.getSnapshot = function(collection, id, fields, options, callback) {
pg.connect(this.pg_config, function(err, client, done) {
if (err) {
done(client);
Expand Down Expand Up @@ -172,7 +172,7 @@ PostgresDB.prototype.getSnapshot = function(collection, id, fields, callback) {
// The version will be inferred from the parameters if it is missing.
//
// Callback should be called as callback(error, [list of ops]);
PostgresDB.prototype.getOps = function(collection, id, from, to, callback) {
PostgresDB.prototype.getOps = function(collection, id, from, to, options, callback) {
pg.connect(this.pg_config, function(err, client, done) {
if (err) {
done(client);
Expand Down