Vazio
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user