From 5cd23ca88f7dc96d232ff22437408be06a7d5dfe Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Mon, 13 Feb 2023 16:58:42 +0100 Subject: [PATCH] changes typings --- packages/backend/src/server/api/mastodon/endpoints/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index ea90a81d9..cde9abe3a 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -312,7 +312,7 @@ export function apiAccountMastodon(router: Router): void { console.error(e); console.error(e.response.data); ctx.status = 401; - ctx.body = { ...e.response.data, ...{user: users} }; + ctx.body = { ...e.response.data, ...{user: users?.toString()} }; } }); router.get("/v1/bookmarks", async (ctx) => {