Added Discord message for reports, Fixed type on docs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Router } from "express";
|
||||
|
||||
import { prisma } from "@repo/db";
|
||||
import { sendReportEmbed } from "modules/discord";
|
||||
|
||||
const router: Router = Router();
|
||||
|
||||
@@ -11,6 +12,9 @@ router.put("/", async (req, res) => {
|
||||
});
|
||||
|
||||
// TODO: send link to report on admin page to user
|
||||
sendReportEmbed(report.id).catch((error) => {
|
||||
console.error("Error sending report embed to Discord:", error);
|
||||
});
|
||||
|
||||
res.json(report);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user