From b107ff5a1faaf46917f0cea97e74c6052cde7890 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 17:42:31 +0200 Subject: [PATCH] chore: lint says const happy --- packages/backend/src/server/api/mastodon/endpoints/account.ts | 2 +- .../backend/src/server/api/mastodon/endpoints/notifications.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index 63817c3782..23c96281f0 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -34,7 +34,7 @@ export class ApiAccountMastodon { public async verifyCredentials() { try { const data = await this.client.verifyAccountCredentials(); - let acct = data.data; + const acct = data.data; acct.id = convertId(acct.id, IdType.MastodonId); acct.display_name = acct.display_name || acct.username; acct.url = `${this.BASE_URL}/@${acct.url}`; diff --git a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts index 1dbb8d8b72..dc801dd053 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/notifications.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/notifications.ts @@ -22,7 +22,7 @@ export class ApiNotifyMastodon { const data = await this.client.getNotifications( convertTimelinesArgsId(toLimitToInt(this.request.query)) ); const notifs = data.data; const processed = notifs.map((n: Entity.Notification) => { - let convertedn = convertNotification(n); + const convertedn = convertNotification(n); if (convertedn.type !== 'follow' && convertedn.type !== 'follow_request') { if (convertedn.type === 'reaction') convertedn.type = 'favourite'; return convertedn;