mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
change args type to EncryptedTransferArgs
This commit is contained in:
parent
20044951f7
commit
afa74f1b10
@ -2,6 +2,7 @@
|
||||
import { Resolver, Mutation, Arg, Ctx } from 'type-graphql';
|
||||
import { CommandExecutor } from '../../command/CommandExecutor';
|
||||
import { CommandResult } from '../model/CommandResult';
|
||||
import { EncryptedTransferArgs } from '../model/EncryptedTransferArgs';
|
||||
|
||||
@Resolver()
|
||||
export class CommandResolver {
|
||||
@ -9,7 +10,7 @@ export class CommandResolver {
|
||||
|
||||
@Mutation(() => CommandResult)
|
||||
async executeCommand(
|
||||
@Arg('encryptedArgs', () => Object) encryptedArgs: any,
|
||||
@Arg('encryptedArgs', () => EncryptedTransferArgs) encryptedArgs: any,
|
||||
@Ctx() context: any
|
||||
): Promise<CommandResult> {
|
||||
// Convert to EncryptedTransferArgs if needed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user