Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 96482e9044 | |||
| 6def9449be |
@@ -1,6 +1,9 @@
|
||||
### Changelog
|
||||
|
||||
#### 1.0.0 (2 November 2018)
|
||||
#### [v1.0.1](https://git.w33ble.com/w33ble/adsb-index/compare/v1.0.0...v1.0.1) (2 November 2018)
|
||||
- fix: format api data correctly [`6def944`](https://git.w33ble.com/w33ble/adsb-index/commit/6def9449be415c50390a2eaa4fd124bd5fa548b6)
|
||||
|
||||
#### v1.0.0 (2 November 2018)
|
||||
- feat: index location as raw numbers [`98e54c8`](https://git.w33ble.com/w33ble/adsb-index/commit/98e54c89d99d01f9dd7762e2851449740e0c8571)
|
||||
- fix: save timestamps correctly [`20bb946`](https://git.w33ble.com/w33ble/adsb-index/commit/20bb9460d17af65950bb5beffab3a3fc6a075a9a)
|
||||
- feat: add basic auth support [`420c845`](https://git.w33ble.com/w33ble/adsb-index/commit/420c845cbc70a7a816ea92986c4e10c206194dca)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "adsb-index",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"description": "ADS-B indexing script",
|
||||
"bin": "bin/index.js",
|
||||
|
||||
@@ -23,8 +23,8 @@ export default async function(indexName, opts = {}) {
|
||||
|
||||
// index all the data
|
||||
const documents = records.map(rec => ({
|
||||
transponder: rec[0],
|
||||
callsign: rec[1],
|
||||
transponder: `${rec[0]}`.toLowerCase(),
|
||||
callsign: `${rec[1]}`.trim(),
|
||||
origin_country: rec[2],
|
||||
time_position: new Date(rec[3] * 1000),
|
||||
last_contact: new Date(rec[4] * 1000),
|
||||
|
||||
Reference in New Issue
Block a user