NubeIO / iot-engine

IoT Engine
5 stars 1 forks source link

Deleting device using ?_force=true causes database error #331

Closed otto-dev closed 4 years ago

otto-dev commented 4 years ago

Creating a device inside a network, and then deleting it, for example DELETE http://45.63.30.129:8380/api/device/9ea31941-fc23-4ed8-b5cc-291ce57f1055?_force=true

returns

{
    "code": "DATABASE_ERROR",
    "message": "Database error. Code: C23_INTEGRITY_CONSTRAINT_VIOLATION"
}
otto-dev commented 4 years ago

I think this error was related to #330