mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change mutation id from int to float and changed the findOrFail parameter to simply id.
This commit is contained in:
parent
a93792cab8
commit
7b3096a88b
@ -1,7 +1,7 @@
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const confirmPendingCreation = gql`
|
||||
mutation ($id: Int!) {
|
||||
mutation ($id: Float!) {
|
||||
confirmPendingCreation(id: $id)
|
||||
}
|
||||
`
|
||||
|
||||
@ -141,7 +141,7 @@ export class AdminResolver {
|
||||
@Mutation(() => Boolean)
|
||||
async confirmPendingCreation(@Arg('id') id: number): Promise<boolean> {
|
||||
const pendingCreationRepository = getCustomRepository(PendingCreationRepository)
|
||||
const pendingCreation = await pendingCreationRepository.findOneOrFail({ id: id })
|
||||
const pendingCreation = await pendingCreationRepository.findOneOrFail(id)
|
||||
console.log('pendingCreation', pendingCreation)
|
||||
|
||||
const transactionRepository = getCustomRepository(TransactionRepository)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user