Skip to content

Commit

Permalink
chore: add comment and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Nov 20, 2023
1 parent 6e4d73e commit fad537e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ Upon the request is successful, a `200` status will br returned with the success

#### Public Graphql endpoint for data querying:

[An external link to our public GraphQL APIs](https://api.forbole.com/graphql)
[An external link to our public GraphQL APIs.](https://api.forbole.com/graphql)

In **non-production** environments, an embedded version of Apollo Sandbox is shown on Apollo Server 4's landing page, served at `http://localhost:4000/graphql`.

[You can find the typedefs here.](src/graphql/typedefs/index.ts)

##### querying of `total no. of users staked to Forbole on all Cosmos SDK chains` on Sandbox:

```graphql
Expand Down
3 changes: 3 additions & 0 deletions src/controllers/common/contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const contact = async (
next: NextFunction,
) => {
try {
// Print a log to see if this endpoint is still used
console.log("src/controllers/common/contact.ts was called");

if (process.env.NODE_ENV === "production") {
await transporter.sendMail(req.body);
}
Expand Down
4 changes: 1 addition & 3 deletions src/graphql/typedefs/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// The GraphQL schema
export const typeDefs = `#graphql
type Query {
cosmosUsersCount: [UsersCountResult]
eachCosmosTVL: [EachCosmosTVLResult]
Expand Down Expand Up @@ -93,7 +92,7 @@ export const typeDefs = `#graphql
type EachCosmosInflationRateResult {
metric: ChainIdAndInstanceMetric
inflationRate: String
inflationRate: String
}
type RadixStakedTokensResult {
Expand Down Expand Up @@ -214,5 +213,4 @@ export const typeDefs = `#graphql
metric: AddressAndInstanceMetric
usersCount: String
}
`;

0 comments on commit fad537e

Please sign in to comment.