This commit is contained in:
Matheus Albino Brunhara
2022-06-20 17:52:03 -05:00
parent 836fff8771
commit 3cbdee7706
2 changed files with 0 additions and 6 deletions

View File

@@ -42,8 +42,6 @@ usersRouter.get('/list', async (request, response) => {
return response.json({ data: users });
});
// TODO, criar middleware ensureIsOwnUser é necessário?
// usar browserAgent, Encrypted Local Storage ou algo do tipo
usersRouter.get('/:id', ensureAuthenticated, async (request, response) => {
const { id } = request.params;

View File

@@ -39,10 +39,6 @@ class CreateUserService {
await usersRepository.save(user);
// já criar registro na tabela Socials para evitar inconsistências
const social = socialInformationRepository.create({ user, phone: "", whatsapp: "", facebook: "", telegram: "" });
await socialInformationRepository.save(social);
return user;
}
}