summary refs log tree commit diff
path: root/api/src/routes/users/@me
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2021-09-20 11:29:37 -0400
committerChris Chrome <christophercookman@gmail.com>2021-09-20 11:29:37 -0400
commitcb83f11ca43e5baa16a38eafc54b0616cd770d82 (patch)
treea9dacf994eeeabf0fd80e4f5d209ae818c0ab78e /api/src/routes/users/@me
parentDelete messages before deleting channel (diff)
downloadserver-cb83f11ca43e5baa16a38eafc54b0616cd770d82.tar.xz
Fix one thing, another problem pops up
Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'api/src/routes/users/@me')
-rw-r--r--api/src/routes/users/@me/relationships.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/@me/relationships.ts b/api/src/routes/users/@me/relationships.ts
index 1d72f11a..6ad873a6 100644
--- a/api/src/routes/users/@me/relationships.ts
+++ b/api/src/routes/users/@me/relationships.ts
@@ -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
 			}
 		}),