Skip to content

Commit 87b4a17

Browse files
authored
Merge pull request #55 from zooniverse/revert-54-pause-db-updates
Revert "Pause db updates"
2 parents 9dbde40 + 8ab2e00 commit 87b4a17

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

server.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ var sns_client = SNSClient(auth, function (err, message) {
5252
if (!!email) {
5353
// https://docs.aws.amazon.com/ses/latest/dg/notification-contents.html#bounce-types
5454
if (report.notificationType === 'Complaint' || report.bounce.bounceType == 'Permanent') {
55-
console.log("Unsubscribed " + email + "(" + report.notificationType + "); changed 0 rows");
56-
57-
// Temporarily pause db updates
58-
// pg_pool.connect(function (err, client, done) {
59-
// updatePanoptes(err, client, done, email, report);
60-
// });
55+
pg_pool.connect(function (err, client, done) {
56+
updatePanoptes(err, client, done, email, report);
57+
});
6158
} else {
6259
console.log("Ignoring non-permanent bounce for", email);
6360
}
@@ -70,7 +67,7 @@ var app = express();
7067
app.get('/', function (req, res) {
7168
res.status(200).end();
7269
});
73-
70+
7471

7572
app.post('/unsub', sns_client);
7673

0 commit comments

Comments
 (0)