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
064e3221bd
commit
dce2abf1c3
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user