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
dce2abf1c3
commit
2cbf01b8df
@ -778,7 +778,7 @@ export class UserResolver {
|
||||
async unDeleteUser(@Arg('userId', () => Int) userId: number): Promise<Date | null> {
|
||||
const user = await DbUser.findOne({ id: userId }, { withDeleted: true })
|
||||
if (!user) {
|
||||
throw new LogError(`Could not find user with userId: ${userId}`, userId)
|
||||
throw new LogError('Could not find user with given ID', userId)
|
||||
}
|
||||
if (!user.deletedAt) {
|
||||
throw new LogError('User is not deleted')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user