Просмотр исходного кода

docs: add resultPromise properties to example snippets

Renée Kooi 6 лет назад
Родитель
Сommit
c49a1401a2
1 измененных файлов с 8 добавлено и 0 удалено
  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>