Delete a distribution lists members when list is deleted
This commit is contained in:
parent
d7ec2e9d82
commit
473d57fb74
1 changed files with 12 additions and 6 deletions
|
@ -212,12 +212,17 @@ function deleteDistributionList(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await dataInterface.modifyStoryDistribution({
|
await dataInterface.modifyStoryDistributionWithMembers(
|
||||||
...storyDistribution,
|
{
|
||||||
deletedAtTimestamp,
|
...storyDistribution,
|
||||||
name: '',
|
name: '',
|
||||||
storageNeedsSync: true,
|
storageNeedsSync: true,
|
||||||
});
|
},
|
||||||
|
{
|
||||||
|
toAdd: [],
|
||||||
|
toRemove: storyDistribution.members,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
log.info(
|
log.info(
|
||||||
'storyDistributionLists.deleteDistributionList: list deleted',
|
'storyDistributionLists.deleteDistributionList: list deleted',
|
||||||
|
@ -528,6 +533,7 @@ export function reducer(
|
||||||
action.payload.listId,
|
action.payload.listId,
|
||||||
() => ({
|
() => ({
|
||||||
deletedAtTimestamp: action.payload.deletedAtTimestamp,
|
deletedAtTimestamp: action.payload.deletedAtTimestamp,
|
||||||
|
memberUuids: [],
|
||||||
name: '',
|
name: '',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue