Fix bug in deleting multiple members from a story distribution list
This commit is contained in:
parent
5815a37e3a
commit
e87873c929
1 changed files with 1 additions and 1 deletions
|
@ -5499,7 +5499,7 @@ function modifyStoryDistributionMembersSync(
|
||||||
db,
|
db,
|
||||||
toRemove,
|
toRemove,
|
||||||
(serviceIds: ReadonlyArray<ServiceIdString>) => {
|
(serviceIds: ReadonlyArray<ServiceIdString>) => {
|
||||||
const serviceIdSet = sqlJoin(serviceIds, '?');
|
const serviceIdSet = sqlJoin(serviceIds, ',');
|
||||||
const [sqlQuery, sqlParams] = sql`
|
const [sqlQuery, sqlParams] = sql`
|
||||||
DELETE FROM storyDistributionMembers
|
DELETE FROM storyDistributionMembers
|
||||||
WHERE listId = ${listId} AND serviceId IN (${serviceIdSet});
|
WHERE listId = ${listId} AND serviceId IN (${serviceIdSet});
|
||||||
|
|
Loading…
Reference in a new issue