Browse Source
			
			
			Minor rehabilitanty impedyment
			
				Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
			
			
				pull/627/head
			
			
		 
		
			
				
					
						 Lukas
					
					4 years ago
						Lukas
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
5 additions and 
4 deletions
			 
			
		 
		
			
				- 
					
					
					 
					server/notification-providers/smtp.js
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -48,6 +48,7 @@ class SMTP extends NotificationProvider { | 
			
		
	
		
		
			
				
					|  |  |             if (heartbeatJSON !== null) { |  |  |             if (heartbeatJSON !== null) { | 
			
		
	
		
		
			
				
					|  |  |                 serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down" : "✅ Up"; |  |  |                 serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down" : "✅ Up"; | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |              | 
			
		
	
		
		
			
				
					|  |  |             // Break replace to one by line for better readability
 |  |  |             // Break replace to one by line for better readability
 | 
			
		
	
		
		
			
				
					|  |  |             customsubject = customsubject.replace(replaceStatus, serviceStatus); |  |  |             customsubject = customsubject.replace(replaceStatus, serviceStatus); | 
			
		
	
		
		
			
				
					|  |  |             customsubject = customsubject.replace(replaceName, monitorName); |  |  |             customsubject = customsubject.replace(replaceName, monitorName); | 
			
		
	
	
		
		
			
				
					|  | 
 |