Skip to content

Commit f833656

Browse files
committed
update pnpm
1 parent addc6eb commit f833656

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

components/letzai/actions/create-image-edit/create-image-edit.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ConfigurationError } from "@pipedream/platform";
12
import { parseObject } from "../../common/utils.mjs";
23
import letzai from "../../letzai.app.mjs";
34

@@ -87,6 +88,10 @@ export default {
8788
return {};
8889
},
8990
async run({ $ }) {
91+
if (!this.originalImageCompletionId && !this.imageUrl) {
92+
throw new ConfigurationError("Please provide either an original image completion ID or an image URL.");
93+
}
94+
9095
const {
9196
letzai,
9297
settings,

pnpm-lock.yaml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)