From 099b86ff3c5f63c0471bcd5e5624bbbcd27ab2f9 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 1 Oct 2023 02:06:04 +0200 Subject: chore: lint --- .../backend/src/server/api/mastodon/MastodonApiServerService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/backend/src/server/api/mastodon/MastodonApiServerService.ts') diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index 2653bbdbdf..b0b5147a48 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -263,8 +263,8 @@ export class MastodonApiServerService { // displayed without being logged in try { const data = await client.search((_request.query as any).acct, { type: 'accounts' }); - const profile = await this.userProfilesRepository.findOneBy({userId: data.data.accounts[0].id}); - data.data.accounts[0].fields = profile?.fields.map(f => ({...f, verified_at: null})) || []; + const profile = await this.userProfilesRepository.findOneBy({ userId: data.data.accounts[0].id }); + data.data.accounts[0].fields = profile?.fields.map(f => ({ ...f, verified_at: null })) || []; reply.send(convertAccount(data.data.accounts[0])); } catch (e: any) { /* console.error(e); */ @@ -302,8 +302,8 @@ export class MastodonApiServerService { try { const sharkId = convertId(_request.params.id, IdType.SharkeyId); const data = await client.getAccount(sharkId); - const profile = await this.userProfilesRepository.findOneBy({userId: sharkId}); - data.data.fields = profile?.fields.map(f => ({...f, verified_at: null})) || []; + const profile = await this.userProfilesRepository.findOneBy({ userId: sharkId }); + data.data.fields = profile?.fields.map(f => ({ ...f, verified_at: null })) || []; reply.send(convertAccount(data.data)); } catch (e: any) { /* console.error(e); -- cgit v1.2.3-freya