Deleting replication documents when needed
This commit is contained in:
parent
d6538843d2
commit
f77f7b5ea5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue