feat: impl. use of new tables
This commit is contained in:
@ -15,7 +15,6 @@ const ttnGatewayReceptionService = container.resolve(
|
||||
TtnGatewayReceptionService
|
||||
);
|
||||
const wifiScanService = container.resolve(WifiScanService);
|
||||
|
||||
const locationService = container.resolve(LocationService);
|
||||
|
||||
const router = express.Router();
|
||||
@ -59,8 +58,6 @@ router.post(
|
||||
rssi: w.rssi,
|
||||
})) ?? [];
|
||||
|
||||
console.log(wifiScans);
|
||||
|
||||
const ttnGatewayReceptions = message.uplink_message.rx_metadata.map(
|
||||
(g) => ({
|
||||
lp_ttn_end_device_uplinks_id,
|
||||
@ -83,9 +80,8 @@ router.post(
|
||||
|
||||
locationService.createLocationFromTriangulation({
|
||||
lp_ttn_end_device_uplinks_id,
|
||||
wifi: wifiResults.map(({ latitude, longitude, rssi }) => ({
|
||||
latitude,
|
||||
longitude,
|
||||
wifi: wifiResults.map(({ mac, rssi }) => ({
|
||||
mac,
|
||||
rssi,
|
||||
})),
|
||||
ttn_gw: gatewayResults.map(({ latitude, longitude, rssi }) => ({
|
||||
|
Reference in New Issue
Block a user