Skip to content

Commit

Permalink
fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanExtreme002 committed Apr 7, 2024
1 parent e1f998f commit dc9ad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ console.log("The flight is", distance, "km away from the airport.");
*Note*: This requires a premium subscription and for you to be logged in.

```javascript
let history_data = await frApi.getHistoryData(flight, "csv", 1706529600);
let historyData = await frApi.getHistoryData(flight, "csv", 1706529600);

const buffer = Buffer.from(arrayBuffer);
const buffer = Buffer.from(historyData);
fs.writeFile("history_data.csv", buffer);
```

Expand Down

0 comments on commit dc9ad6e

Please sign in to comment.