diff --git a/src/index/datastore.ts b/src/index/datastore.ts index 5b34cee8c..8d9c2be06 100644 --- a/src/index/datastore.ts +++ b/src/index/datastore.ts @@ -116,7 +116,7 @@ export class Datastore { * added to the object. */ public store(object: T | T[], substorer?: Substorer) { - this._recursiveStore(object, this.revision++, substorer, undefined); + this._recursiveStore(object, ++this.revision, substorer, undefined); } /** Recursively store objects using a potential subindexer. */