mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
parent
2cbf01b8df
commit
42e2490d84
@ -794,7 +794,7 @@ export class UserResolver {
|
||||
// const user = await dbUser.findOne({ id: emailContact.userId })
|
||||
const user = await findUserByEmail(email)
|
||||
if (!user) {
|
||||
throw new LogError(`Could not find User to emailContact: ${email}`, email)
|
||||
throw new LogError('Could not find user to given email contact', email)
|
||||
}
|
||||
if (user.deletedAt) {
|
||||
throw new LogError(`User with emailContact: ${email} is deleted`, email)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user