sensebox / ttn-osem-integration

integration for thethingsnetwork.org to opensensemap.org
MIT License
6 stars 3 forks source link

Cannot read property 'createdAt of null' #18

Closed mpfeil closed 5 years ago

mpfeil commented 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.

{
    "code": 422,
    "msg": "TypeError: Cannot read property 'createdAt' of null"
}

Probably an issue inside the module @sensebox/opensensemap-api-models.

mpfeil commented 5 years ago

Check this PR https://github.com/sensebox/openSenseMap-API/pull/179 wait for a new release of @sensebox/opensensemap-api-models

mpfeil commented 5 years ago

API was deployed and we can close this issue