Fixing found bug in UpdatePhoto UUID->photoUID

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-13 13:20:23 -08:00
parent 030b361d9e
commit 414bfb6aa1
17 changed files with 114 additions and 17 deletions

View file

@ -8,8 +8,6 @@ import (
"net/http"
"net/url"
"strings"
"github.com/kris-nova/logger"
)
const (
@ -49,8 +47,7 @@ type V1Response struct {
func (r *V1Response) String() string {
if r.Error != nil {
// Handle errors from the HTTP request first
logger.Warning("during HTTP request: %v", r.Error)
return "{}"
return fmt.Sprintf(`{\n"StatusCode":%d,\n"Body":"%s"}`, r.StatusCode, string(r.Body))
}
return string(r.Body)
}