fix missing negator

This commit is contained in:
Moriz Wahl 2022-02-10 08:14:58 +01:00
parent 7e54251f71
commit 0a545c5fbe

View File

@ -70,7 +70,7 @@ export class AdminResolver {
): Promise<number[]> {
const userRepository = getCustomRepository(UserRepository)
const user = await userRepository.findByEmail(email)
if (user.emailChecked) {
if (!user.emailChecked) {
throw new Error('Creation could not be saved, Email is not activated')
}
const creations = await getUserCreations(user.id)