delete child if parent is deleted

This commit is contained in:
Kevin Jahns
2017-10-26 20:53:17 +02:00
parent 74f9ceab01
commit 5cf8d20cf6
6 changed files with 32 additions and 19 deletions

View File

@@ -106,7 +106,8 @@ export async function compareUsers (t, users) {
left: op._left === null ? null : op._left._lastId,
right: op._right === null ? null : op._right._id,
length: op._length,
deleted: op._deleted
deleted: op._deleted,
parent: op._parent._id
}
if (op instanceof ItemJSON || op instanceof ItemString) {
json.content = op._content