From 7614a84b5e5b4434b36afab04b12600ca3ee30ce Mon Sep 17 00:00:00 2001 From: Bernardo Date: Tue, 29 Oct 2024 14:56:00 +0000 Subject: [PATCH] fix: mintEndPeriod as Int --- schema.graphql | 2 +- src/event_handlers/hubV2.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schema.graphql b/schema.graphql index e4545db..ab4acfe 100644 --- a/schema.graphql +++ b/schema.graphql @@ -103,7 +103,7 @@ type Avatar { # balance of all tokens aggregated balance: BigInt! lastMint: Int - mintEndPeriod: BigInt + mintEndPeriod: Int trustedByN: Int! profile: Profile } diff --git a/src/event_handlers/hubV2.ts b/src/event_handlers/hubV2.ts index 4724cd5..b8d222f 100644 --- a/src/event_handlers/hubV2.ts +++ b/src/event_handlers/hubV2.ts @@ -187,7 +187,7 @@ HubV2.PersonalMint.handler(async ({ event, context }) => { context.Avatar.set({ ...avatar, lastMint: event.block.timestamp, - mintEndPeriod: event.params.endPeriod, + mintEndPeriod: parseInt(event.params.endPeriod.toString()), }); } });