Fix bug in deleting multiple members from a story distribution list

This commit is contained in:
trevor-signal 2023-11-22 13:19:57 -05:00 committed by GitHub
parent 5815a37e3a
commit e87873c929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5499,7 +5499,7 @@ function modifyStoryDistributionMembersSync(
db,
toRemove,
(serviceIds: ReadonlyArray<ServiceIdString>) => {
const serviceIdSet = sqlJoin(serviceIds, '?');
const serviceIdSet = sqlJoin(serviceIds, ',');
const [sqlQuery, sqlParams] = sql`
DELETE FROM storyDistributionMembers
WHERE listId = ${listId} AND serviceId IN (${serviceIdSet});