🎨 Convert id bigint to string

This commit is contained in:
Flam3rboy
2021-04-06 18:02:10 +02:00
parent 79894e6f27
commit 7089287016
18 changed files with 83 additions and 63 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ router.get("/", async (req: Request, res: Response) => {
// user send to leave a certain guild
router.delete("/:id", async (req: Request, res: Response) => {
const guildID = BigInt(req.params.id);
const guildID = (req.params.id);
const guild = await GuildModel.findOne({ id: guildID }).exec();
if (!guild) throw new HTTPError("Guild doesn't exist", 404);