Update backend/src/graphql/resolver/UserResolver.ts

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
Ulf Gebhardt 2023-02-02 02:04:25 +01:00 committed by GitHub
parent 2cbf01b8df
commit 42e2490d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)