summary refs log tree commit diff
path: root/api/src/routes/gifs
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/gifs')
-rw-r--r--api/src/routes/gifs/search.ts2
-rw-r--r--api/src/routes/gifs/trending-gifs.ts2
-rw-r--r--api/src/routes/gifs/trending.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/api/src/routes/gifs/search.ts b/api/src/routes/gifs/search.ts
index 9ad7a592..1099dc4a 100644
--- a/api/src/routes/gifs/search.ts
+++ b/api/src/routes/gifs/search.ts
@@ -20,7 +20,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 		headers: { "Content-Type": "application/json" }
 	});
 
-	const { results } = await response.json();
+	const { results } = await response.json() as any;
 
 	res.json(results.map(parseGifResult)).status(200);
 });
diff --git a/api/src/routes/gifs/trending-gifs.ts b/api/src/routes/gifs/trending-gifs.ts
index 6d97bf7c..2b28d9d2 100644
--- a/api/src/routes/gifs/trending-gifs.ts
+++ b/api/src/routes/gifs/trending-gifs.ts
@@ -20,7 +20,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 		headers: { "Content-Type": "application/json" }
 	});
 
-	const { results } = await response.json();
+	const { results } = await response.json() as any;
 
 	res.json(results.map(parseGifResult)).status(200);
 });
diff --git a/api/src/routes/gifs/trending.ts b/api/src/routes/gifs/trending.ts
index c81b4c08..bc143f00 100644
--- a/api/src/routes/gifs/trending.ts
+++ b/api/src/routes/gifs/trending.ts
@@ -50,8 +50,8 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 		})
 	]);
 
-	const { tags } = await responseSource.json();
-	const { results } = await trendGifSource.json();
+	const { tags } = await responseSource.json() as any;
+	const { results } = await trendGifSource.json() as any;
 
 	res.json({
 		categories: tags.map((x: any) => ({ name: x.searchterm, src: x.image })),