Skip to content

Commit b737deb

Browse files
committed
New Rejected Mailing List
1 parent 0aa8ccc commit b737deb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tasks/mailSync.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,7 @@ function constructSubscriberObjectFromUser(user: User): SubscriberObj {
293293
lists.push(createListName(dm.delegation.conference.title, dm.conferenceId, 'HEAD_DELEGATES'));
294294
}
295295

296-
if (
297-
dm.delegation.conference.state !== 'PARTICIPANT_REGISTRATION' &&
298-
!dm.delegation.assignedNationAlpha3Code &&
299-
!dm.delegation.assignedNonStateActorId
300-
) {
296+
if (!dm.delegation.assignedNationAlpha3Code && !dm.delegation.assignedNonStateActorId) {
301297
lists.push(
302298
createListName(dm.delegation.conference.title, dm.conferenceId, 'REJECTED_PARTICIPANTS')
303299
);
@@ -327,7 +323,7 @@ function constructSubscriberObjectFromUser(user: User): SubscriberObj {
327323

328324
if (sp.assignedRoleId) {
329325
lists.push(createListName(sp.conference.title, sp.conferenceId, 'SINGLE_PARTICIPANTS'));
330-
} else if (sp.conference.state !== 'PARTICIPANT_REGISTRATION') {
326+
} else {
331327
lists.push(createListName(sp.conference.title, sp.conferenceId, 'REJECTED_PARTICIPANTS'));
332328
}
333329

0 commit comments

Comments
 (0)