mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
change parameter name to code
This commit is contained in:
parent
d90284a269
commit
e9357198c0
@ -135,11 +135,11 @@ export class TransactionLinkResolver {
|
||||
@Authorized([RIGHTS.REDEEM_TRANSACTION_LINK])
|
||||
@Mutation(() => Boolean)
|
||||
async redeemTransactionLink(
|
||||
@Arg('id', () => String) id: string,
|
||||
@Arg('code', () => String) id: string,
|
||||
@Ctx() context: any,
|
||||
): Promise<boolean> {
|
||||
const { user } = context
|
||||
const transactionLink = await dbTransactionLink.findOneOrFail({ code: id })
|
||||
const transactionLink = await dbTransactionLink.findOneOrFail({ code })
|
||||
const linkedUser = await dbUser.findOneOrFail({ id: transactionLink.userId })
|
||||
|
||||
const now = new Date()
|
||||
|
||||
@ -80,6 +80,6 @@ export const deleteTransactionLink = gql`
|
||||
|
||||
export const redeemTransactionLink = gql`
|
||||
mutation($code: String!) {
|
||||
redeemTransactionLink(id: $code)
|
||||
redeemTransactionLink(code: $code)
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user