Skip to content

Commit

Permalink
docs: update info
Browse files Browse the repository at this point in the history
  • Loading branch information
Complexlity committed Sep 5, 2024
1 parent edf1301 commit 4c2ed2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion site/docs/pages/results-and-errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ When using airstack service, `getUserByUsername` does not return viewerContext s

```ts
type Cast = {
//Viewer context does not always exist
//Author's viewer context does not always exist in this case
author: UserWithOptionalViewerContext;
hash: string;
url: string;
Expand Down
3 changes: 0 additions & 3 deletions src/services/airstack/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs from "fs";
import type { DataOrError } from "@/lib/types";
import axios from "axios";
const AIRSTACK_ENDPOINT = "https://api.airstack.xyz/gql";
Expand Down Expand Up @@ -135,8 +134,6 @@ export async function _fetch<ResponseType>(
query: string,
variables: Record<string, unknown>,
): Promise<DataOrError<ResponseType>> {
fs.writeFileSync("query.txt", query);
console.log({ query });
try {
const response = await axios({
url: AIRSTACK_ENDPOINT,
Expand Down

0 comments on commit 4c2ed2b

Please sign in to comment.