change creationDate in sendCoinArgs to String

This commit is contained in:
Claus-Peter Huebner 2023-09-05 18:38:53 +02:00
parent 4b73be8721
commit 589e4f4878
3 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ export class SendCoinsArgs {
@Field(() => String)
userReceiverIdentifier: string
@Field(() => Date)
creationDate: Date
@Field(() => String)
creationDate: string
@Field(() => Decimal)
amount: Decimal

View File

@ -4,7 +4,7 @@ export const voteForSendCoins = gql`
mutation (
$communityReceiverIdentifier: String!
$userReceiverIdentifier: String!
$creationDate: Date!
$creationDate: String!
$amount: Decimal!
$memo: String!
$communitySenderIdentifier: String!

View File

@ -42,7 +42,7 @@ export async function processXComSendCoins(
? receiverCom.communityUuid
: CONFIG.FEDERATION_XCOM_RECEIVER_COMMUNITY_UUID
args.userReceiverIdentifier = recipient.gradidoID
args.creationDate = creationDate
args.creationDate = creationDate.toISOString()
args.amount = amount
args.memo = memo
args.communitySenderIdentifier = senderCom.communityUuid