Skip to content

Commit

Permalink
Fix console log and error handling (#7377)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Jun 21, 2023
1 parent a421d1c commit fe2ac13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ci/log-changesets.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ async function logChangesets() {
return;
}

const data = JSON.stringify({
const data = {
version,
pr: prPayload.pull_request.number
});
};

const options = {
method: 'POST',
Expand All @@ -70,9 +70,9 @@ async function logChangesets() {

req.on('error', error => reject(error));

req.write(data, err => reject(err));
req.write(JSON.stringify(data), err => reject(err));
req.end();
});
}

logChangesets();
logChangesets().catch(e => console.error(e));

0 comments on commit fe2ac13

Please sign in to comment.