test DB
This commit is contained in:
		
							parent
							
								
									10b4acaf18
								
							
						
					
					
						commit
						72e6600926
					
				| 
						 | 
				
			
			@ -53,16 +53,17 @@ const sendNotification = async () => {
 | 
			
		|||
      }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    let params = {
 | 
			
		||||
      type: "stream",
 | 
			
		||||
      to: "Result test - auto.nswteam.net",
 | 
			
		||||
      topic: "AU-dev",
 | 
			
		||||
      content: JSON.stringify({ auto1: auto1, auto2: auto2, log: log }),
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    client.messages.send(params);
 | 
			
		||||
    
 | 
			
		||||
    setTimeout(async () => {
 | 
			
		||||
      console.log({ auto1: auto1, auto2: auto2, log: log });
 | 
			
		||||
      let params = {
 | 
			
		||||
        type: "stream",
 | 
			
		||||
        to: "Result test - auto.nswteam.net",
 | 
			
		||||
        topic: "AU-dev",
 | 
			
		||||
        content: JSON.stringify({ auto1: auto1, auto2: auto2, log: log }),
 | 
			
		||||
      };
 | 
			
		||||
  
 | 
			
		||||
      client.messages.send(params);
 | 
			
		||||
      if (process.argv[2] === "interval") {
 | 
			
		||||
        if (log.includes("succeeded") === false) {
 | 
			
		||||
          exec("pm2 restart all", (error, stdout, stderr) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue