Skip to content

Commit 69389c5

Browse files
committed
some adjusts
1 parent 9ebfda5 commit 69389c5

File tree

5 files changed

+8
-29
lines changed

5 files changed

+8
-29
lines changed

components/easypromos/easypromos.app.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ export default {
4646
});
4747
return {
4848
options: items.map(({
49-
id: value, title, internal_ref: ref,
49+
id, title, internal_ref: ref,
5050
}) => ({
5151
label: ref || title,
52-
value,
52+
value: parseInt(id),
5353
})),
5454
context: {
5555
nextCursor: paging.next_cursor,

components/easypromos/sources/common/base.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export default {
1616
alertType: "info",
1717
content: "The Easypromos API only works with \"White Label\" promotions, any other type will not appear in the list.",
1818
},
19+
promotionId: {
20+
propDefinition: [
21+
easypromos,
22+
"promotionId",
23+
],
24+
},
1925
},
2026
methods: {
2127
_getLastId() {

components/easypromos/sources/new-coin-transaction/new-coin-transaction.mjs

-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ export default {
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",
12-
props: {
13-
...common.props,
14-
promotionId: {
15-
propDefinition: [
16-
common.props.easypromos,
17-
"promotionId",
18-
],
19-
},
20-
},
2112
methods: {
2213
...common.methods,
2314
getFunction() {

components/easypromos/sources/new-participation/new-participation.mjs

-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ export default {
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",
12-
props: {
13-
...common.props,
14-
promotionId: {
15-
propDefinition: [
16-
common.props.easypromos,
17-
"promotionId",
18-
],
19-
},
20-
},
2112
methods: {
2213
...common.methods,
2314
getFunction() {

components/easypromos/sources/new-user/new-user.mjs

-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ export default {
99
version: "0.0.1",
1010
type: "source",
1111
dedupe: "unique",
12-
props: {
13-
...common.props,
14-
promotionId: {
15-
propDefinition: [
16-
common.props.easypromos,
17-
"promotionId",
18-
],
19-
},
20-
},
2112
methods: {
2213
...common.methods,
2314
getFunction() {

0 commit comments

Comments
 (0)