Skip to content

Commit

Permalink
fix(type): fix a bug in RichLogootSOperation.fromPlain
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricenclos committed Oct 25, 2018
1 parent 9f9ae5a commit b9af994
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/sync/RichLogootSOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class RichLogootSOperation {

const logootSDel = LogootSDel.fromPlain(o.logootSOp)
if (logootSDel instanceof LogootSDel && o.dependencies.length > 0) {
return new RichLogootSOperation(o.id, o.clock, logootSDel, o.dependencies)
return new RichLogootSOperation(o.id, o.clock, logootSDel, o.dependencies as Dot[])
}
}

Expand Down
1 change: 0 additions & 1 deletion test/Sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ test('deliver-operations-in-causal-order', (context) => {

let counter = 0
context.plan(richLogootSOps.length * 2)
sync.remoteLogootSOperations$.subscribe((o) => console.log(o))
return sync.remoteLogootSOperations$.pipe(
map(({ operations }) => {
context.is(operations.length, 1)
Expand Down

0 comments on commit b9af994

Please sign in to comment.