summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-06 00:35:52 +0200
committerRory& <root@rory.gay>2026-07-08 01:20:38 +0200
commit28e8ec3b6cab9c19e6e7dcaf1c21afe72543adc4 (patch)
tree97304ebb64f09f2240215dfc9354990a8f8ed821 /src/api
parentBasic gif integration manager, port tenor search to that (diff)
downloadserver-ts-28e8ec3b6cab9c19e6e7dcaf1c21afe72543adc4.tar.xz
Clean up
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/gifs/search.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/gifs/search.ts b/src/api/routes/gifs/search.ts

index 20f778890..ca951779a 100644 --- a/src/api/routes/gifs/search.ts +++ b/src/api/routes/gifs/search.ts
@@ -16,8 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { route } from "@spacebar/api/util/handlers/route"; import { Request, Response, Router } from "express"; +import { route } from "@spacebar/api/util/handlers/route"; import { GifMediaTypes } from "@spacebar/schemas"; import { GifProviderManager } from "@spacebar/util/util/integrations/gifProviders/GifProviderManager"; @@ -55,7 +55,7 @@ router.get( async (req: Request, res: Response) => { const { provider } = req.query; - const impl = GifProviderManager.getProvider(provider as string); + const impl = GifProviderManager.getProvider((provider as string) ?? "tenor"); const result = await impl.search(req.query as typeof impl.search.arguments); res.json(result).status(200);