Skip to content

Commit 6296ed0

Browse files
committed
some adjusts
1 parent da937be commit 6296ed0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

components/transloadit/actions/create-assembly/create-assembly.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,17 @@ export default {
4949
},
5050
async run({ $ }) {
5151
if (!this.allowStepsOverride && this.templateId && this.steps) {
52-
throw new Error("Either 'templateId' or 'steps' must be provided, not both.");
52+
throw new ConfigurationError("Either 'templateId' or 'steps' must be provided, not both.");
5353
}
5454
if (!this.templateId && !this.steps) {
55-
throw new Error("Either 'templateId' or 'steps' must be provided.");
55+
throw new ConfigurationError("Either 'templateId' or 'steps' must be provided.");
5656
}
5757

5858
try {
5959
const response = await this.transloadit.createAssembly({
6060
params: {
6161
template_id: this.templateId,
6262
steps: parseObject(this.steps),
63-
fields: this.fields,
6463
notify_url: this.notifyUrl,
6564
allow_steps_override: this.allowStepsOverride,
6665
quiet: this.quiet,
File renamed without changes.

components/transloadit/transloadit.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Transloadit from "transloadit";
2-
import { LIMIT } from "../../common/constants.mjs";
2+
import { LIMIT } from "./common/constants.mjs";
33

44
export default {
55
type: "app",

0 commit comments

Comments
 (0)