change variable id to code

This commit is contained in:
ogerly 2022-03-20 11:33:15 +01:00
parent 5695427392
commit 283a9d751b

View File

@ -70,14 +70,14 @@ export default {
this.linkData.deletedAt = true this.linkData.deletedAt = true
}) })
}, },
redeemLink(id, amount) { redeemLink(amount) {
this.$bvModal.msgBoxConfirm(this.$t('gdd_per_link.redeem-text')).then(async (value) => { this.$bvModal.msgBoxConfirm(this.$t('gdd_per_link.redeem-text')).then(async (value) => {
if (value) if (value)
await this.$apollo await this.$apollo
.mutate({ .mutate({
mutation: redeemTransactionLink, mutation: redeemTransactionLink,
variables: { variables: {
id: id, code: this.$route.params.code,
}, },
}) })
.then(() => { .then(() => {