Skip to content

Commit 9708fc8

Browse files
lcaresiaGTFalcao
andauthored
Update components/u301/actions/create-qrcode/create-qrcode.mjs
Co-authored-by: Guilherme Falcão <[email protected]>
1 parent ec5d8e0 commit 9708fc8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/u301/actions/create-qrcode/create-qrcode.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,10 @@ export default {
2828
},
2929
},
3030
async run({ $ }) {
31-
const response = await this.app.createQrCode({
31+
const { app, ...params } = this;
32+
const response = await app.createQrCode({
3233
$,
33-
params: {
34-
url: this.url,
35-
width: this.width,
36-
margin: this.margin,
37-
},
34+
params,
3835
});
3936

4037
$.export("$summary", `Successfully created the QR Code for the url: ${this.url}`);

0 commit comments

Comments
 (0)