Skip to content

Commit

Permalink
remove tiime
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz committed Feb 3, 2022
1 parent 335e02e commit be7d59f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/api/services/gqlQueriesBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const nodes = `
isCapsule
frozenCaps
price
priceTiime
marketplaceId
}
`;
Expand Down Expand Up @@ -44,13 +43,6 @@ export class GQLQueriesBuilder {
:
""
}
${query.filter?.priceTiime !== undefined ?
`{priceTiime:
{${query.filter?.priceTiimeFilter ? query.filter.priceTiimeFilter : "isEqual"}: "${query.filter.priceTiime}"}
}`
:
""
}
]
}
${query.filter?.owner ? `owner: "${query.filter.owner}"` : ""}
Expand Down Expand Up @@ -193,7 +185,6 @@ export class GQLQueriesBuilder {
) {
nodes {
capsAmount
tiimeAmount
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/api/services/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class NFTService {
}
return result
} catch (err) {
console.log(err)
throw new Error("Couldn't get NFTs");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/services/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class UserService {
if (result && result.accountEntities && result.accountEntities.nodes && result.accountEntities.nodes.length) {
return result.accountEntities.nodes[0];
} else {
return { "capsAmount": "0", "tiimeAmount": "0" }
return { "capsAmount": "0" }
}
} catch (err) {
throw new Error("Couldn't get caps balance");
Expand Down
4 changes: 0 additions & 4 deletions src/api/validators/nftValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export type NFTsQuery = {
creator?: string
price?: string
priceFilter?: string
priceTiime?: string
priceTiimeFilter?: string
seriesLocked?: boolean
isCapsule?: boolean
}
Expand Down Expand Up @@ -53,8 +51,6 @@ export const validationGetNFTs = (query: any) => {
creator: Joi.string(),
price: Joi.string(),
priceFilter: Joi.string(),
priceTiime: Joi.string(),
priceTiimeFilter: Joi.string(),
seriesLocked: Joi.boolean(),
isCapsule: Joi.boolean(),
}),
Expand Down
2 changes: 0 additions & 2 deletions src/interfaces/graphQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface INFT {
isCapsule?: boolean;
frozenCaps?: string;
price: string;
priceTiime?: string;
serieId?: string;
totalNft?: number;
totalListedNft?: number;
Expand Down Expand Up @@ -71,7 +70,6 @@ export interface DistinctNFTListResponse {

export interface Account {
capsAmount: string;
tiimeAmount: string;
id?: string;
}

Expand Down

0 comments on commit be7d59f

Please sign in to comment.