From cd481e7144bd5e72f7304bcede09b35691d2c652 Mon Sep 17 00:00:00 2001 From: joseph le Date: Wed, 20 Sep 2023 16:29:26 +0700 Subject: [PATCH] add webhook gitea --- netmiko_client/src/components/TestDevice/TestDevice.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netmiko_client/src/components/TestDevice/TestDevice.jsx b/netmiko_client/src/components/TestDevice/TestDevice.jsx index 6de8391..336adff 100644 --- a/netmiko_client/src/components/TestDevice/TestDevice.jsx +++ b/netmiko_client/src/components/TestDevice/TestDevice.jsx @@ -377,9 +377,9 @@ const TestDevice = ({ socket, user }) => { }); let temp2 = []; for (let i = 0; i < res1.data.listLastLog.length; i++) { - if (Date.now() - res1.data.listLastLog[i].created_at < 3600000) { + // if (Date.now() - res1.data.listLastLog[i].created_at < 3600000) { temp2.push(res1.data.listLastLog[i]); - } + // } } temp1.push({ idSta: allStation[j].id_station, temp2 }); } @@ -1160,7 +1160,6 @@ const TestDevice = ({ socket, user }) => { socket?.on("sendListDeviceOn", (data) => { // console.log(data) setListDeviceOn(data); - // console.log(Date.now(), data); // data.map((t) => { // // if (listTestAuto.filter((item) => item.id === t.id).length === 0) { // temp.push(t.infoLine);