fix core-server URL in prod
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
DISPATCH_SERVER_PORT=3002
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
DISCORD_SERVER_URL=http://core-server
|
||||
CORE_SERVER_URL=http://core-server
|
||||
DISPATCH_APP_TOKEN=dispatch
|
||||
LIVEKIT_API_KEY=APIAnsGdtdYp2Ho
|
||||
LIVEKIT_API_SECRET=tdPjVsYUx8ddC7K9NvdmVAeLRF9GeADD6Fedm1x63fWC
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
|
||||
const discordAxiosClient = axios.create({
|
||||
baseURL: process.env.DISCORD_SERVER_URL || "https://discord.com/api/v10",
|
||||
baseURL: process.env.CORE_SERVER_URL,
|
||||
});
|
||||
|
||||
export const renameMember = async (memberId: string, newName: string) => {
|
||||
|
||||
@@ -10,8 +10,6 @@ router.put("/", async (req, res) => {
|
||||
const report = await prisma.report.create({
|
||||
data: req.body,
|
||||
});
|
||||
|
||||
// TODO: send link to report on admin page to user
|
||||
sendReportEmbed(report.id).catch((error) => {
|
||||
console.error("Error sending report embed to Discord:", error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user