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