function findById(id) {
    return getRepository().then((repository) =>
        repository.findOne({ where: { id } }),
    );
}