Browse Source

docs: add resultPromise properties to example snippets

Renée Kooi 6 năm trước cách đây
mục cha
commit
c49a1401a2
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      website/src/docs/robodog.md

+ 8 - 0
website/src/docs/robodog.md

@@ -56,6 +56,10 @@ const resultPromise = transloadit.pick({
     template_id: ''
   }
 })
+resultPromise.then((bundle) => {
+  bundle.transloadit // Array of Assembly statuses
+  bundle.results // Array of all Assembly results
+})
 ```
 
 **ADD IMAGE OR GIF HERE**
@@ -96,6 +100,10 @@ const resultPromise = transloadit.upload(files, {
     template_id: ''
   }
 })
+resultPromise.then((bundle) => {
+  bundle.transloadit // Array of Assembly statuses
+  bundle.results // Array of all Assembly results
+})
 ```
 
 <a class="MoreButton" href="/docs/robodog/upload">View Documentation</a>