mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
fix more non-format string-concat
This commit is contained in:
@@ -32,4 +32,3 @@ export class Mysql implements IDatabase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,4 +131,3 @@ export class Postgres implements IDatabase {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -355,4 +355,3 @@ export {
|
|||||||
endpoint,
|
endpoint,
|
||||||
handleGetSegments
|
handleGetSegments
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ async function sendWebhooksNB(userID: string, videoID: string, UUID: string, sta
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
"embeds": [{
|
"embeds": [{
|
||||||
"title": ytData.items[0].snippet.title,
|
"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 +
|
"description": "**Submission ID:** " + UUID +
|
||||||
"\n**Timestamp:** " + getFormattedTime(startTime) + " to " + getFormattedTime(endTime) +
|
"\n**Timestamp:** " + getFormattedTime(startTime) + " to " + getFormattedTime(endTime) +
|
||||||
"\n**Predicted Probability:** " + probability +
|
"\n**Predicted Probability:** " + probability +
|
||||||
|
|||||||
Reference in New Issue
Block a user