fix: error message when email exists (#16022)

* fix: error message when email exists

* chore: change postion of error

---------

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
This commit is contained in:
Udit TakkarandHariom Balhara authored and GitHub committed 2024-08-22 14:20:41 +00:00
1 parent 8a972a74c6
commit c821f15a14
2 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ const processResult = (
case "username_exists":
return {
statusCode: 418,
message: "A user exists with that username",
message: "A user exists with that username or email",
};
case "is_premium":
return { statusCode: 402, message: "This is a premium username." };