Fix typo during refactoring
During code refactoring for selectable
unsubscription feature code:
`!campaignId || status > 2` was wrongly refactored
to:
`subscription.status !== Status.SUBSCRIBED`
Link:
a6d25e668b (diff-5af9fe5dfae76c093530c92e3d7404e1R496)
This commit is contained in:
parent
5aa6dff743
commit
819fcfb392
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ module.exports.changeStatus = (listId, id, campaignId, status, callback) => {
|
|||
}
|
||||
|
||||
// status change is not related to a campaign or it marks message as bounced etc.
|
||||
if (!campaignId || status !== Status.SUBSCRIBED) {
|
||||
if (!campaignId || status > Status.UNSUBSCRIBED) {
|
||||
return connection.commit(err => {
|
||||
if (err) {
|
||||
return helpers.rollbackAndReleaseConnection(connection, () => callback(err));
|
||||
|
|
Loading…
Reference in a new issue