Deleting replication documents when needed
This commit is contained in:
1 parent
d6538843d2
commit
f77f7b5ea5
1 file changed
+4
@@ -164,6 +164,10 @@ const User: Component<Props> = (props) => {
|
||||
defaultUserDocument
|
||||
);
|
||||
|
||||
const otherUserId = userId(subscription.username, data('database'));
|
||||
await del(`${currentUserId}=>${otherUserId}`, '_replicator');
|
||||
await del(`${otherUserId}=>${currentUserId}`, '_replicator');
|
||||
|
||||
console.log({
|
||||
caller: 'User / submitHandler / deleted subscription',
|
||||
username: subscription.username,
|
||||
|
||||
Reference in new issue
Block a user