Change the composition of the link from addition to replace.

This commit is contained in:
elweyn 2022-04-08 08:14:50 +02:00
parent 2f2c00605f
commit 6588a636dd

View File

@ -18,7 +18,7 @@ export class TransactionLink {
this.deletedAt = transactionLink.deletedAt
this.redeemedAt = transactionLink.redeemedAt
this.redeemedBy = redeemedBy
this.link = CONFIG.COMMUNITY_REDEEM_URL + this.code
this.link = CONFIG.COMMUNITY_REDEEM_URL.replace(/{code}/g, this.code)
}
@Field(() => Number)