Ban Message Design

This commit is contained in:
Nicolas
2025-06-23 14:30:20 +02:00
parent 93962a9ce4
commit c8cf7eae63
6 changed files with 110 additions and 29 deletions

View File

@@ -171,7 +171,7 @@ router.delete("/:id", async (req, res) => {
data: {
userId: aircraft.userId,
type: bann ? (until ? "TIME_BAN" : "BAN") : "KICK",
until: until ? new Date(until) : null,
until: until ? new Date(until) : new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 50),
reason: reason,
createdUserId: req.user.id,
},

View File

@@ -88,7 +88,7 @@ router.delete("/:id", async (req, res) => {
data: {
userId: dispatcher.userId,
type: bann ? (until ? "TIME_BAN" : "BAN") : "KICK",
until: until ? new Date(until) : null,
until: until ? new Date(until) : new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 50),
reason: reason,
createdUserId: req.user.id,
},