@saber-usa/node-common 1.7.41-alpha.2 → 1.7.41-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/udl.js +3 -1
package/package.json
CHANGED
package/src/udl.js
CHANGED
|
@@ -26,7 +26,8 @@ import _ from "lodash";
|
|
|
26
26
|
*/
|
|
27
27
|
const getSensorId = (ob) => ob.idSensor ?? ob.origSensorId ?? null;
|
|
28
28
|
|
|
29
|
-
const getObsSatno = (udlRow) =>
|
|
29
|
+
const getObsSatno = (udlRow) =>
|
|
30
|
+
udlRow.idOnOrbit ?? udlRow.origObjectId ?? udlRow.satNo ?? null;
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* Converts a UDL EOObservation row to NPS EoObs (PascalCase keys).
|
|
@@ -577,6 +578,7 @@ export {
|
|
|
577
578
|
udlToNpsState,
|
|
578
579
|
enrichUdlFields,
|
|
579
580
|
getSensorId,
|
|
581
|
+
getObsSatno,
|
|
580
582
|
udlToNpsObs,
|
|
581
583
|
udlToRadarObs,
|
|
582
584
|
};
|