Add Multi to thing struct

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-31 12:51:45 -04:00
parent 57ee41b2cf
commit b42aa44c44
5 changed files with 36 additions and 39 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ type PostService struct {
client *Client
}
type submittedLinkRoot struct {
type rootSubmittedPost struct {
JSON struct {
Data *Submitted `json:"data,omitempty"`
} `json:"json"`
@@ -125,7 +125,7 @@ func (s *PostService) submit(ctx context.Context, v interface{}) (*Submitted, *R
return nil, nil, err
}
root := new(submittedLinkRoot)
root := new(rootSubmittedPost)
resp, err := s.client.Do(ctx, req, root)
if err != nil {
return nil, resp, err