Add db param to core name lookup function.
This commit is contained in:
		
							parent
							
								
									2a897e0bef
								
							
						
					
					
						commit
						9d7345bee2
					
				@ -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){
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user