change args type to EncryptedTransferArgs

This commit is contained in:
clauspeterhuebner 2026-01-28 22:21:53 +01:00
parent 20044951f7
commit afa74f1b10

View File

@ -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