Implemented support for composite type, fixed insert type issues for y-array

This commit is contained in:
Kevin Jahns
2016-02-29 13:46:08 +01:00
parent effc2fe576
commit ba4f444f32
4 changed files with 19 additions and 15 deletions

View File

@@ -205,9 +205,7 @@ module.exports = function (Y /* :any */) {
this.userIdPromise.then(f)
}
getNextOpId () {
if (this._nextUserId != null) {
return this._nextUserId
} else if (this.userId == null) {
if (this.userId == null) {
throw new Error('OperationStore not yet initialized!')
} else {
return [this.userId, this.opClock++]