poprawki
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user