diff --git a/oplog/new.go b/oplog/new.go index c0e5e72..8393f3f 100644 --- a/oplog/new.go +++ b/oplog/new.go @@ -11,7 +11,10 @@ func New(endpoint string, data []*LogItem) error { return nil } func PostLog(data []*LogItem, endpoint string) (resp *http.Response, err error) { - jsonBytes, err := json.Marshal(data) + request := map[string]any{ + "data": data, + } + jsonBytes, err := json.Marshal(request) if err != nil { return nil, err }