mirror of https://github.com/louislam/uptime-kuma
				
				
				
			Ensure maintenance are always runned at the right moment (#5903)
Co-authored-by: Frank Elsinga <frank@elsinga.de>pull/5846/head^2
							parent
							
								
									4d51aaa6f8
								
							
						
					
					
						commit
						c7bacbb7fe
					
				| 
						 | 
				
			
			@ -243,7 +243,7 @@ class Maintenance extends BeanModel {
 | 
			
		|||
            try {
 | 
			
		||||
                this.beanMeta.status = "scheduled";
 | 
			
		||||
 | 
			
		||||
                let startEvent = (customDuration = 0) => {
 | 
			
		||||
                let startEvent = async (customDuration = 0) => {
 | 
			
		||||
                    log.info("maintenance", "Maintenance id: " + this.id + " is under maintenance now");
 | 
			
		||||
 | 
			
		||||
                    this.beanMeta.status = "under-maintenance";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue