diff --git a/src/databases/Mysql.ts b/src/databases/Mysql.ts index 4c6a4fa..f856e7d 100644 --- a/src/databases/Mysql.ts +++ b/src/databases/Mysql.ts @@ -32,4 +32,3 @@ export class Mysql implements IDatabase { } } - diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index 65fe06a..de264b7 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -131,4 +131,3 @@ export class Postgres implements IDatabase { return result; } } - diff --git a/src/routes/getSkipSegments.ts b/src/routes/getSkipSegments.ts index fc20dd3..87fbde6 100644 --- a/src/routes/getSkipSegments.ts +++ b/src/routes/getSkipSegments.ts @@ -355,4 +355,3 @@ export { endpoint, handleGetSegments }; - diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index ca59db9..5535dd0 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -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 + diff --git a/src/routes/voteOnSponsorTime.ts b/src/routes/voteOnSponsorTime.ts index eabc4a4..2139e8f 100644 --- a/src/routes/voteOnSponsorTime.ts +++ b/src/routes/voteOnSponsorTime.ts @@ -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": {