diff --git a/schema.graphql b/schema.graphql index 1c67e5f..e8edfc2 100644 --- a/schema.graphql +++ b/schema.graphql @@ -15,5 +15,5 @@ type UserBond @entity{ id: ID! ref: String!, height: BigInt!, - date: Date! + ts: BigInt! } \ No newline at end of file diff --git a/src/mappings/mappingHandlers.ts b/src/mappings/mappingHandlers.ts index db51e2b..10c8b74 100644 --- a/src/mappings/mappingHandlers.ts +++ b/src/mappings/mappingHandlers.ts @@ -158,6 +158,6 @@ export async function handleBondExecution( id: msg.msg.decodedMsg.sender, ref: referral, height: BigInt(msg.block.header.height), - date: new Date(msg.block.header.time.getTime()) + ts: BigInt(msg.block.header.time.getTime()) })).save(); } \ No newline at end of file