Add db param to core name lookup function.

This commit is contained in:
jkaplon 2015-08-05 15:29:42 -04:00
parent 2a897e0bef
commit 9d7345bee2

View File

@ -210,7 +210,7 @@ app.post('/', function(req, res){
mailOptions.text = 'An alert message was received: \n\n';
mailOptions.text = mailOptions.text + 'Status message, ' + status + '\n';
mailOptions.text = mailOptions.text + 'Published at, ' + alertmonUtils.getLocDateFromUTC(pubAt) + ' ' + alertmonUtils.getLocTimeFromUTC(pubAt) + '\n';
mailOptions.text = mailOptions.text + 'From device, ' + alertmonUtils.getCoreNameFromCoreId(coreid) + '\n';
mailOptions.text = mailOptions.text + 'From device, ' + alertmonUtils.getCoreNameFromCoreId(db, coreid) + '\n';
transporter.sendMail(mailOptions, function(error, info){
if(error){