From 010f2299f0c0f2a6537c0989be039e8fa17a366b Mon Sep 17 00:00:00 2001 From: SabreCat Date: Mon, 7 Aug 2023 11:49:04 -0500 Subject: [PATCH] fix(lint): eof and const --- website/server/libs/chatReporting/profileReporter.js | 2 +- website/server/libs/slack.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/server/libs/chatReporting/profileReporter.js b/website/server/libs/chatReporting/profileReporter.js index e30f1b8099..3717a9f713 100644 --- a/website/server/libs/chatReporting/profileReporter.js +++ b/website/server/libs/chatReporting/profileReporter.js @@ -111,4 +111,4 @@ export default class ProfileReporter extends ChatReporter { } return flaggedUser; } -} \ No newline at end of file +} diff --git a/website/server/libs/slack.js b/website/server/libs/slack.js index 71dd019217..d7736ec91e 100644 --- a/website/server/libs/slack.js +++ b/website/server/libs/slack.js @@ -183,11 +183,11 @@ function sendProfileFlagNotification ({ }) { const title = 'User Profile Report'; const titleLink = `${BASE_URL}/static/front/#?memberId=${flaggedUser._id}`; - const text = `@${reporter.auth.local.username} (${reporter._id}; language: ${reporter.preferences.language}) flagged @${flaggedUser.auth.local.username}'s profile`; + let text = `@${reporter.auth.local.username} (${reporter._id}; language: ${reporter.preferences.language}) flagged @${flaggedUser.auth.local.username}'s profile`; if (userComment) { text += ` and commented: ${userComment}`; } - const profileData = `Bio: ${flaggedUser.profile.blurb}`; + let profileData = `Bio: ${flaggedUser.profile.blurb}`; if (flaggedUser.profile.imageUrl) { profileData += `\n\nImage URL: ${flaggedUser.profile.imageUrl}`; }