diff --git a/site/docs/pages/results-and-errors.mdx b/site/docs/pages/results-and-errors.mdx index f8017c9..972f725 100644 --- a/site/docs/pages/results-and-errors.mdx +++ b/site/docs/pages/results-and-errors.mdx @@ -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; diff --git a/src/services/airstack/utils.ts b/src/services/airstack/utils.ts index e8b808c..23d1bd5 100644 --- a/src/services/airstack/utils.ts +++ b/src/services/airstack/utils.ts @@ -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"; @@ -135,8 +134,6 @@ export async function _fetch( query: string, variables: Record, ): Promise> { - fs.writeFileSync("query.txt", query); - console.log({ query }); try { const response = await axios({ url: AIRSTACK_ENDPOINT,