Skip to content

Commit 2fc8618

Browse files
committed
some adjusts
1 parent 89fd64e commit 2fc8618

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/xendit/actions/create-payout/create-payout.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { parseObject } from "../../common/utils.mjs";
12
import xendit from "../../xendit.app.mjs";
23

34
export default {
@@ -70,7 +71,7 @@ export default {
7071
optional: true,
7172
},
7273
metadata: {
73-
type: "string",
74+
type: "object",
7475
label: "Metadata",
7576
description: "A list of objects of metadata key-value pairs. The key must be a string and the value can be a string or number.",
7677
optional: true,
@@ -95,7 +96,7 @@ export default {
9596
email_cc: this.emailCc,
9697
email_bcc: this.emailBcc,
9798
},
98-
metadata: this.metadata,
99+
metadata: parseObject(this.metadata),
99100
},
100101
});
101102

0 commit comments

Comments
 (0)