Closed mpfeil closed 5 years ago
If you delete all measurements of a sensor the property lastMeasurement is set to null. Trying to set/save a new measurement is not possible anymore.
measurements
sensor
lastMeasurement
null
{ "code": 422, "msg": "TypeError: Cannot read property 'createdAt' of null" }
Probably an issue inside the module @sensebox/opensensemap-api-models.
@sensebox/opensensemap-api-models
Check this PR https://github.com/sensebox/openSenseMap-API/pull/179 wait for a new release of @sensebox/opensensemap-api-models
API was deployed and we can close this issue
If you delete all
measurements
of asensor
the propertylastMeasurement
is set tonull
. Trying to set/save a new measurement is not possible anymore.Probably an issue inside the module
@sensebox/opensensemap-api-models
.