Skip to content

Commit

Permalink
fix: getCumulativeHistoricalShareAllocation custom resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanakram3 committed Mar 31, 2024
1 parent e198968 commit d2d1b03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server-extension/resolvers/CreatorToken/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class TokenResolver {
cumulativeAllocationAmount += share.allocation
}
return {
cumulativeHistoricalAllocation: Number(cumulativeAllocationAmount),
cumulativeHistoricalAllocation: cumulativeAllocationAmount.toString(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/server-extension/resolvers/CreatorToken/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export class GetCumulativeHistoricalShareAllocationArgs {

@ObjectType()
export class GetCumulativeHistoricalShareAllocationResult {
@Field(() => Int, { nullable: false })
cumulativeHistoricalAllocation!: number
@Field(() => String, { nullable: false })
cumulativeHistoricalAllocation!: string
}

@ArgsType()
Expand Down

0 comments on commit d2d1b03

Please sign in to comment.