Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
tokendaydata date datatype changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammad-Mubeen committed Nov 15, 2021
1 parent a8cc433 commit b5f3478
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion graphql/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ const tokendaydatasbydate = {
async resolve(parent, args, context) {
try {

let tokendaydatas = await TokenDayData.find({date:parseInt(args.date)});
let tokendaydatas = await TokenDayData.find({date:parseFloat(args.date)});

return tokendaydatas.splice(0, args.first);
} catch (error) {
Expand Down
5 changes: 3 additions & 2 deletions graphql/types/tokenDayData.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const {
GraphQLID,
GraphQLString,
GraphQLInt,
GraphQLList
GraphQLList,
GraphQLFloat
} = require("graphql");

var token=require('./token');
Expand All @@ -17,7 +18,7 @@ const tokenDayDataType = new GraphQLObjectType({

_id: {type: GraphQLID },
id:{type:GraphQLString},
date: {type:GraphQLInt},
date: {type:GraphQLFloat},
token: {type:GraphQLString},
// volume stats
dailyVolumeToken: {type:GraphQLInt},
Expand Down

0 comments on commit b5f3478

Please sign in to comment.