work in progress on segments

some cleanup of models - handling dependencies in delete
This commit is contained in:
Tomas Bures 2017-08-14 22:53:29 +02:00
parent b23529a75b
commit 0bfb30817b
29 changed files with 553 additions and 990 deletions

View file

@ -183,7 +183,7 @@ async function create(context, user) {
id = ids[0];
}
await shares.rebuildPermissions(tx, { userId: id });
await shares.rebuildPermissionsTx(tx, { userId: id });
});
return id;
@ -231,7 +231,7 @@ async function updateWithConsistencyCheck(context, user, isOwnAccount) {
await shares.removeDefaultShares(tx, existing);
}
await shares.rebuildPermissions(tx, { userId: user.id });
await shares.rebuildPermissionsTx(tx, { userId: user.id });
});
}