From 447547b911a78c883079b01457cff41108332d02 Mon Sep 17 00:00:00 2001 From: Cleo John Date: Tue, 28 Feb 2023 17:38:48 +0100 Subject: [PATCH] fix errors --- packages/backend/src/server/api/mastodon/endpoints/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/search.ts b/packages/backend/src/server/api/mastodon/endpoints/search.ts index 456050fa0..b610e784d 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/search.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/search.ts @@ -45,7 +45,7 @@ export function apiSearchMastodon(router: Router): void { } catch (e: any) { console.error(e); ctx.status = (401); - ctx.body e.response.data; + ctx.body = e.response.data; } }); router.get("/v1/trends/statuses", async (ctx) => {