Skip to content

Commit 548a9ad

Browse files
committed
Apparently that's changed
1 parent e267c33 commit 548a9ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/email_logs_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def log
1515
EmailLog.create(log_type: 'SubscriptionConfirmation', data: aws_data)
1616
else
1717
message_data = JSON.parse aws_data['Message']
18-
log_type = message_data['notificationType']
18+
log_type = message_data['notificationType'] || message_data['eventType']
1919
destination = message_data['mail']['destination'].join(', ')
2020
EmailLog.create(log_type: log_type, destination: destination, data: aws_data['Message'])
2121
end

0 commit comments

Comments
 (0)