summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2025-07-02 15:54:23 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2025-07-02 15:54:23 +0200
commitfca7953a514f278f1ac4547602a2f328e8b5831d (patch)
tree2c59eb5c3ffc03e7fbd8db60eefd428aba6f676c /src/api
parentFix the fix (diff)
downloadserver-ts-fca7953a514f278f1ac4547602a2f328e8b5831d.tar.xz
Update some dependencies, fix nix
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/gifs/search.ts3
-rw-r--r--src/api/routes/gifs/trending-gifs.ts3
-rw-r--r--src/api/routes/gifs/trending.ts5
3 files changed, 7 insertions, 4 deletions
diff --git a/src/api/routes/gifs/search.ts b/src/api/routes/gifs/search.ts

index 3869bbe6b..04e2013ad 100644 --- a/src/api/routes/gifs/search.ts +++ b/src/api/routes/gifs/search.ts
@@ -26,6 +26,7 @@ import { import { Request, Response, Router } from "express"; import fetch from "node-fetch-commonjs"; import { ProxyAgent } from "proxy-agent"; +import http from "http"; const router = Router(); @@ -67,7 +68,7 @@ router.get( const response = await fetch( `https://g.tenor.com/v1/search?q=${q}&media_format=${media_format}&locale=${locale}&key=${apiKey}`, { - agent, + agent: agent as http.Agent, method: "get", headers: { "Content-Type": "application/json" }, }, diff --git a/src/api/routes/gifs/trending-gifs.ts b/src/api/routes/gifs/trending-gifs.ts
index f19874e6d..34428a546 100644 --- a/src/api/routes/gifs/trending-gifs.ts +++ b/src/api/routes/gifs/trending-gifs.ts
@@ -26,6 +26,7 @@ import { import { Request, Response, Router } from "express"; import fetch from "node-fetch-commonjs"; import { ProxyAgent } from "proxy-agent"; +import http from "http"; const router = Router(); @@ -62,7 +63,7 @@ router.get( const response = await fetch( `https://g.tenor.com/v1/trending?media_format=${media_format}&locale=${locale}&key=${apiKey}`, { - agent, + agent: agent as http.Agent, method: "get", headers: { "Content-Type": "application/json" }, }, diff --git a/src/api/routes/gifs/trending.ts b/src/api/routes/gifs/trending.ts
index 2c43a501f..c95d8fbbd 100644 --- a/src/api/routes/gifs/trending.ts +++ b/src/api/routes/gifs/trending.ts
@@ -26,6 +26,7 @@ import { import { Request, Response, Router } from "express"; import fetch from "node-fetch-commonjs"; import { ProxyAgent } from "proxy-agent"; +import http from "http"; const router = Router(); @@ -58,7 +59,7 @@ router.get( fetch( `https://g.tenor.com/v1/categories?locale=${locale}&key=${apiKey}`, { - agent, + agent: agent as http.Agent, method: "get", headers: { "Content-Type": "application/json" }, }, @@ -66,7 +67,7 @@ router.get( fetch( `https://g.tenor.com/v1/trending?locale=${locale}&key=${apiKey}`, { - agent, + agent: agent as http.Agent, method: "get", headers: { "Content-Type": "application/json" }, },