Skip to content

Commit

Permalink
fix(syncmessageservice): in deserialize, fix fromPlain's parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricenclos committed Nov 21, 2018
1 parent e65d887 commit eb9f396
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sync/SyncMessageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ export class SyncMessageService extends Service<proto.ISyncMsg, proto.SyncMsg> {
logootSAddMsg,
logootSDelMsg,
}: proto.RichLogootSOperationMsg): RichLogootSOperation {
const addOpe = LogootSAdd.fromPlain(logootSAddMsg)
const delOpe = LogootSDel.fromPlain(logootSDelMsg)
console.log('operation :', addOpe, delOpe)
return RichLogootSOperation.fromPlain({
id,
clock,
logootSOp: logootSAddMsg || logootSDelMsg,
logootSOp: addOpe || delOpe,
dependencies,
}) as RichLogootSOperation
}
Expand Down

0 comments on commit eb9f396

Please sign in to comment.