From edf7f40a109b057b93eb8c31602d4a3c3b1d78a2 Mon Sep 17 00:00:00 2001 From: Cale <1299322+WildYorkies@users.noreply.github.com> Date: Sun, 11 Mar 2018 08:14:35 -0700 Subject: [PATCH] Fix typo in "already exist" error message --- server/middlewares/validators/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index 49bc0bb56..6ea3d0b6c 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts @@ -250,7 +250,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email: if (user) { res.status(409) - .send({ error: 'User with this username of email already exists.' }) + .send({ error: 'User with this username or email already exists.' }) .end() return false } -- 2.41.0