|
@@ -205,7 +205,7 @@ func (ep *EndPoint) Post(ctx context.Context) (createdDoc map[string]interface{}
|
|
|
}
|
|
|
|
|
|
for _, ref := range refs {
|
|
|
- if err := tx.Create(ref, ep.Payload); err != nil {
|
|
|
+ if err := tx.Create(ref, ep.Payload.data); err != nil {
|
|
|
return err
|
|
|
}
|
|
|
refLog := ref.Collection("logs").NewDoc()
|