Fixing returned value of getSnapshotDownloadLinkEventHandler
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c5667f99b8
commit
3fdabb2229
@ -1013,7 +1013,16 @@ func getSnapshotDownloadLinkEventHandler(m *nats.Msg, message *RequestMessage) e
|
|||||||
return errorReplyFormater(m, "backend error", err)
|
return errorReplyFormater(m, "backend error", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = m.Respond([]byte(link))
|
reply := ReplyMessage{
|
||||||
|
Payload: link,
|
||||||
|
}
|
||||||
|
|
||||||
|
data, err := json.Marshal(reply)
|
||||||
|
if err != nil {
|
||||||
|
return errorReplyFormater(m, "reply formatter error", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = m.Respond(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("ERROR: get snapshot:", err.Error())
|
log.Println("ERROR: get snapshot:", err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user