FIX: notify tg

This commit is contained in:
overtorment 2024-12-16 17:33:04 +00:00
parent 8789d9c94f
commit d1c29fb320
2 changed files with 5 additions and 4 deletions

View File

@ -17,4 +17,5 @@ jobs:
npm install --production
./node_modules/.bin/ts-node src/main.ts
env:
TOKEN: ${{ secrets.TOKEN }}
TOKEN: ${{ secrets.TOKEN }}
CONNECTOR_ID: ${{ secrets.CONNECTOR_ID }}

View File

@ -206,8 +206,8 @@ async function run(): Promise<void> {
}
}
function postDataToTrafficRobot(data, connectorId) {
console.log('notifying trafficRobot');
var postData = querystring.stringify({
data
});
@ -224,8 +224,8 @@ function postDataToTrafficRobot(data, connectorId) {
};
var req = https.request(options, (res) => {
res.on('data', (d) => {
process.stdout.write(d);
res.on("data", (d) => {
console.log(d);
});
});