This commit is contained in:
Mateusz Gruszczyński
2026-04-06 10:46:48 +02:00
parent 1ba1a26291
commit 0c7414101a
23 changed files with 962 additions and 355 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export const createUser = async (input: {
defaultCurrency?: string;
}) => {
const existing = await repo().findOne({ where: { email: input.email.toLowerCase() } });
if (existing) throw new Error('Email already exists');
if (existing) throw new Error('Email address is already in use');
const user = repo().create({
fullName: input.fullName,