Pārlūkot izejas kodu

transloadit: Return assembly information from `createAssembly`.

We don't actually use this right now but this is what I would've
expected a method called `createAssembly` to do.
Renée Kooi 7 gadi atpakaļ
vecāks
revīzija
617c5e525c
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/plugins/Transloadit/index.js

+ 3 - 1
src/plugins/Transloadit/index.js

@@ -167,8 +167,10 @@ module.exports = class Transloadit extends Plugin {
       this.core.emit('transloadit:assembly-created', assembly, fileIDs)
 
       return this.connectSocket(assembly)
-    }).then(() => {
+        .then(() => assembly)
+    }).then((assembly) => {
       this.core.log('Transloadit: Created assembly')
+      return assembly
     }).catch((err) => {
       this.core.info(this.opts.locale.strings.creatingAssemblyFailed, 'error', 0)