This commit is contained in:
Daniel Ledda
2020-11-04 19:01:11 +01:00
parent 42d372c860
commit 42dfd20eb9
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import (
"io/ioutil"
)
type SnapshotListResponse struct {
type SnapshotPayload struct {
Snapshots []*SnapshotRecord `json:"snapshots"`
}
@@ -41,7 +41,7 @@ func createSnapshotSubFromJsonBodyStream(jsonBodyStream io.ReadCloser) (*Snapsho
}
func createJsonFromSnapshotRecords(records []*SnapshotRecord) ([]byte, error) {
jsonResult, err := json.Marshal(SnapshotListResponse{records})
jsonResult, err := json.Marshal(SnapshotPayload{records})
if err != nil {
return nil, err
}