pendingCreationRepository.manager.remove res - fix prettier

This commit is contained in:
ogerly 2021-11-26 17:49:29 +01:00
parent 12329bba98
commit f2c31b7d68

View File

@ -84,7 +84,7 @@ export class AdminResolver {
const entity = await pendingCreationRepository.findOne(id)
if (!entity) throw new Error('Not pending creation with this id.')
const res = await pendingCreationRepository.manager.remove(entity)
return res ? true : false
return !!res
}
}