Browse Source

transloadit: Wrap getAssemblyOptions() if a plain object is returned.

Renée Kooi 7 years ago
parent
commit
9188e46ffa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/plugins/Transloadit/index.js

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

@@ -617,7 +617,7 @@ module.exports = class Transloadit extends Plugin {
 
     let optionsPromise
     if (fileIDs.length > 0) {
-      optionsPromise = this.getAssemblyOptions(fileIDs)
+      optionsPromise = Promise.resolve(this.getAssemblyOptions(fileIDs))
         .then((allOptions) => this.dedupeAssemblyOptions(allOptions))
     } else if (this.opts.alwaysRunAssembly) {
       optionsPromise = Promise.resolve(