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:03:29 +01:00 committed by GitHub
parent 064e3221bd
commit dce2abf1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -760,7 +760,7 @@ export class UserResolver {
const user = await DbUser.findOne({ id: userId }) const user = await DbUser.findOne({ id: userId })
// user exists ? // user exists ?
if (!user) { if (!user) {
throw new LogError(`Could not find user with userId: ${userId}`, userId) throw new LogError('Could not find user with given ID', userId)
} }
// moderator user disabled own account? // moderator user disabled own account?
const moderatorUser = getUser(context) const moderatorUser = getUser(context)