mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-16 18:01:20 +00:00
Change delete method from Query to Mutation.
This commit is contained in:
parent
db6fbf72a7
commit
f452e6537f
@ -78,7 +78,7 @@ export class AdminResolver {
|
||||
return pendingCreationsPromise
|
||||
}
|
||||
|
||||
@Query(() => Boolean)
|
||||
@Mutation(() => Boolean)
|
||||
async deletePendingCreation(@Arg('id') id: number): Promise<boolean> {
|
||||
const pendingCreationRepository = getCustomRepository(PendingCreationRepository)
|
||||
const entity = await pendingCreationRepository.findOne(id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user