mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-26 15:57:31 +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 { Resolver, Mutation, Arg, Ctx } from 'type-graphql';
|
||||||
import { CommandExecutor } from '../../command/CommandExecutor';
|
import { CommandExecutor } from '../../command/CommandExecutor';
|
||||||
import { CommandResult } from '../model/CommandResult';
|
import { CommandResult } from '../model/CommandResult';
|
||||||
|
import { EncryptedTransferArgs } from '../model/EncryptedTransferArgs';
|
||||||
|
|
||||||
@Resolver()
|
@Resolver()
|
||||||
export class CommandResolver {
|
export class CommandResolver {
|
||||||
@ -9,7 +10,7 @@ export class CommandResolver {
|
|||||||
|
|
||||||
@Mutation(() => CommandResult)
|
@Mutation(() => CommandResult)
|
||||||
async executeCommand(
|
async executeCommand(
|
||||||
@Arg('encryptedArgs', () => Object) encryptedArgs: any,
|
@Arg('encryptedArgs', () => EncryptedTransferArgs) encryptedArgs: any,
|
||||||
@Ctx() context: any
|
@Ctx() context: any
|
||||||
): Promise<CommandResult> {
|
): Promise<CommandResult> {
|
||||||
// Convert to EncryptedTransferArgs if needed
|
// Convert to EncryptedTransferArgs if needed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user