- Implemented store for register methods

This commit is contained in:
Alexis
2020-12-23 20:25:43 +01:00
parent fdad47e84e
commit 65abb41a9f
6 changed files with 264 additions and 192 deletions

View File

@@ -17,7 +17,6 @@ const Users = new UserRepository();
const getUsers = () => {
return Users.getAll()
.catch(err => {
console.log(err)
throw err
})
}
@@ -42,7 +41,6 @@ router.get('/', async (req, res) => {
const getUserByUUID = (uuid) => {
return Users.getOneByUUID(uuid)
.catch(err => {
console.log(err)
throw err
})
}
@@ -67,7 +65,6 @@ router.get('/:uuid/', async (req, res) => {
const checkIfEmailAvailable = (mail) => {
return Users.checkIfEmailAvailable(mail)
.catch(err => {
console.log(err)
throw err
})
}
@@ -92,7 +89,6 @@ router.get('/available/:mail/', async (req, res) => {
const logUser = (mail, password) => {
return Users.logUser(mail, password)
.catch(err => {
console.log(err)
throw err
})
}