Commit 7d094615 authored by Sonja Happ's avatar Sonja Happ
Browse files

AMQP: do not continue with component update if UUID could not be found

parent b89a835d
......@@ -130,6 +130,7 @@ func ConnectAMQP(uri string) error {
err = db.Where("UUID = ?", ICUUID).Find(sToBeUpdated).Error
if err != nil {
log.Println("AMQP: Unable to find IC with UUID: ", gjson.Get(content, "properties.uuid"), " DB error message: ", err)
err = db.Model(&sToBeUpdated).Updates(map[string]interface{}{
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment