add webhook gitea

This commit is contained in:
joseph le 2023-09-20 16:29:26 +07:00
parent 2cebc3aa7e
commit cd481e7144
1 changed files with 2 additions and 3 deletions

View File

@ -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);