mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
separation of discord channels
This commit is contained in:
@@ -38,8 +38,8 @@ export const addTournament = publicProcedure
|
||||
if (result.insertedId) {
|
||||
const { tournament, country, date, time_control } = tournamentData;
|
||||
|
||||
if (typeof process.env.DISCORD_WEBHOOK_URL === "string") {
|
||||
await fetch(process.env.DISCORD_WEBHOOK_URL as string, {
|
||||
if (typeof process.env.DISCORD_WEBHOOK_ADD_TOURNAMENT_URL === "string") {
|
||||
await fetch(process.env.DISCORD_WEBHOOK_ADD_TOURNAMENT_URL as string, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
@@ -77,8 +77,8 @@ const getResultDetails = (
|
||||
};
|
||||
|
||||
const reportFetchError = async (url: string, error: any) => {
|
||||
if (typeof process.env.DISCORD_WEBHOOK_URL === "string") {
|
||||
await fetch(process.env.DISCORD_WEBHOOK_URL as string, {
|
||||
if (typeof process.env.DISCORD_WEBHOOK_ERROR_LOGS_URL === "string") {
|
||||
await fetch(process.env.DISCORD_WEBHOOK_ERROR_LOGS_URL as string, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user