Fix one thing, another problem pops up

Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
This commit is contained in:
Chris Chrome
2021-09-20 11:29:37 -04:00
co-authored by TheArcaneBrony
parent 12a151eb2d
commit 013a4b8bc8
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ router.post("/", route({ body: "RelationshipPostSchema" }), async (req: Request,
relations: ["relationships", "relationships.to"],
select: userProjection,
where: {
discriminator: String(req.body.discriminator,).padStart(4, '0'), //Discord send the discriminator as integer, we need to add leading zeroes
discriminator: String(req.body.discriminator).padStart(4, '0'), //Discord send the discriminator as integer, we need to add leading zeroes
username: req.body.username
}
}),