Skip to content

Commit cd5b2ef

Browse files
authored
shift the query range in ops
1 parent 3ed4039 commit cd5b2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ PostgresDB.prototype.getOps = function(collection, id, from, to, options, callba
138138
return;
139139
}
140140
client.query(
141-
'SELECT version, operation FROM ops WHERE collection = $1 AND doc_id = $2 AND version >= $3 AND version < $4',
141+
'SELECT version, operation FROM ops WHERE collection = $1 AND doc_id = $2 AND version > $3 AND version <= $4',
142142
[collection, id, from, to],
143143
function(err, res) {
144144
done();

0 commit comments

Comments
 (0)