- Finished Booking an Event
- Starting UsersList (creating CGridTableRec component to view and edit a db table)
This commit is contained in:
@@ -10,7 +10,7 @@ export function registeredemail(email: string) {
|
||||
return res.status !== PayloadMessageTypes.statusfound
|
||||
}
|
||||
|
||||
return Axios.get(VALIDATE_USER_URL + email)
|
||||
return Axios.get(VALIDATE_USER_URL + process.env.APP_ID + '/' + email)
|
||||
.then(onSuccess)
|
||||
.catch((err) => {
|
||||
return true
|
||||
|
||||
@@ -7,15 +7,11 @@ const VALIDATE_USER_URL = process.env.MONGODB_HOST + '/users/'
|
||||
|
||||
export function registereduser(userName: string) {
|
||||
|
||||
let config = {
|
||||
params: { userName: userName }
|
||||
}
|
||||
|
||||
let onSuccess = (res: AxiosResponse) => {
|
||||
return res.status !== PayloadMessageTypes.statusfound
|
||||
}
|
||||
|
||||
return Axios.get(VALIDATE_USER_URL + config.params.userName)
|
||||
return Axios.get(VALIDATE_USER_URL + process.env.APP_ID + '/' + userName)
|
||||
.then(onSuccess)
|
||||
.catch((err) => {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user