Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb-backend-go
Commits
7d094615
Commit
7d094615
authored
Sep 30, 2020
by
Sonja Happ
Browse files
AMQP: do not continue with component update if UUID could not be found
parent
b89a835d
Changes
1
Show whitespace changes
Inline
Side-by-side
amqp/amqpclient.go
View file @
7d094615
...
...
@@ -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
)
continue
}
err
=
db
.
Model
(
&
sToBeUpdated
)
.
Updates
(
map
[
string
]
interface
{}{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment