Skip to content

Commit

Permalink
FIX: notify tg
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Dec 16, 2024
1 parent 8789d9c commit d1c29fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/merger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ async function run(): Promise<void> {
}
}


function postDataToTrafficRobot(data, connectorId) {
console.log('notifying trafficRobot');
var postData = querystring.stringify({
data
});
Expand All @@ -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);
});
});

Expand Down

0 comments on commit d1c29fb

Please sign in to comment.