Skip to content

Commit 0da814d

Browse files
committed
Fix version check
1 parent bb66ad2 commit 0da814d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,8 @@ export class DatabaseConnection extends events.EventEmitter {
16901690
q.item = this.ensureResource(q.item, q.collectionname);
16911691
}
16921692
}
1693-
var _oldversion = q.item._version;
1693+
var _oldversion = 0;
1694+
if (original != null) _oldversion = original._version;
16941695
if (q.item.hasOwnProperty("_skiphistory")) {
16951696
delete (q.item as any)._skiphistory;
16961697
if (!Config.allow_skiphistory) {

0 commit comments

Comments
 (0)