fix more non-format string-concat

This commit is contained in:
Michael C
2021-07-12 02:48:49 -04:00
parent 8b3ffe5d0d
commit b5a29675d6
5 changed files with 2 additions and 5 deletions

View File

@@ -32,4 +32,3 @@ export class Mysql implements IDatabase {
}
}

View File

@@ -131,4 +131,3 @@ export class Postgres implements IDatabase {
return result;
}
}

View File

@@ -355,4 +355,3 @@ export {
endpoint,
handleGetSegments
};

View File

@@ -126,7 +126,7 @@ async function sendWebhooksNB(userID: string, videoID: string, UUID: string, sta
body: JSON.stringify({
"embeds": [{
"title": ytData.items[0].snippet.title,
"url": "https://www.youtube.com/watch?v=" + videoID + "&t=" + (parseFloat(startTime.toFixed(0)) - 2),
"url": `https://www.youtube.com/watch?v=${videoID}&t=${(parseFloat(startTime.toFixed(0)) - 2)}`,
"description": "**Submission ID:** " + UUID +
"\n**Timestamp:** " + getFormattedTime(startTime) + " to " + getFormattedTime(endTime) +
"\n**Predicted Probability:** " + probability +

View File

@@ -129,7 +129,7 @@ async function sendWebhooks(voteData: VoteData) {
"color": 10813440,
"author": {
"name": voteData.finalResponse?.webhookMessage ??
voteData.finalResponse?.finalMessage ??
voteData.finalResponse?.finalMessage ??
getVoteAuthor(userSubmissionCountRow.submissionCount, voteData.isVIP, voteData.isOwnSubmission),
},
"thumbnail": {