Skip to content

Commit

Permalink
Merge pull request #28 from duboisp/apps
Browse files Browse the repository at this point in the history
Fix upsert issue for subsRecents
  • Loading branch information
GormFrank authored Apr 15, 2020
2 parents 54617bf + 1426657 commit 0a1a6cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ exports.confirmEmail = ( req, res, next ) => {
subscode: subscode,
topicId: topicId
}
}, { upsert: 1 });
}, { upsert: true });

// subs_logs entry - this can be async
_devLog && dbConn.collection( "subs_logs" ).updateOne(
Expand Down Expand Up @@ -467,7 +467,7 @@ exports.removeEmail = ( req, res, next ) => {
topicId: topicId,
link: unsubLink
}
}, { upsert: 1 });
}, { upsert: true });

// Redirect to Generic page to confirm the email is removed
res.redirect( unsubLink );
Expand Down

0 comments on commit 0a1a6cb

Please sign in to comment.