Skip to content

Commit e2acfc0

Browse files
committed
Typo in last commit
1 parent dbdfbed commit e2acfc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ PostgresDB.prototype.commit = function (collection, id, op, snapshot, options, c
9090
FROM ops
9191
WHERE collection = $1 AND doc_id = $2
9292
) OR NOT EXISTS (
93-
SELECT 1
93+
SELECT 0
9494
FROM ops
9595
WHERE collection = $1 AND doc_id = $2
9696
)
97-
) AND EXISTS (SELECT 0 FROM snapshot_id)
97+
) AND EXISTS (SELECT 1 FROM snapshot_id)
9898
RETURNING version`,
9999
values: [collection, id, snapshot.v, snapshot.type, snapshot.data, op]
100100
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sharedb-postgres",
3-
"version": "3.0.0-zw.2",
3+
"version": "3.0.0-zw.3",
44
"description": "PostgreSQL adapter for ShareDB",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)