Changeset befb988 for jobvista-frontend/src/redux/actions
- Timestamp:
- 06/17/24 21:59:14 (5 months ago)
- Branches:
- main
- Children:
- 08f82ec
- Parents:
- b248810
- Location:
- jobvista-frontend/src/redux/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
jobvista-frontend/src/redux/actions/applicationActions.js
rb248810 rbefb988 47 47 } 48 48 }, 49 fetchApplicationsByJobSeeker: ( callback) => {49 fetchApplicationsByJobSeeker: (jobSeekerId, callback) => { 50 50 return dispatch => { 51 let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER)); 52 axios.get("/my-applications/" + currentUser.id) 51 axios.get("/my-applications/" + jobSeekerId) 53 52 .then(response => { 54 53 dispatch({ -
jobvista-frontend/src/redux/actions/authActions.js
rb248810 rbefb988 45 45 //const refreshToken = response.refreshToken; 46 46 const user = { 47 id: response.id,48 email: response.email,49 47 name: response.name, 50 48 role: response.role, 51 49 access: response.hasAccess, 50 id: response.id, 52 51 }; 53 52 dispatch({ -
jobvista-frontend/src/redux/actions/jobAdvertisementActions.js
rb248810 rbefb988 87 87 }, 88 88 89 fetchJobAdvertisementsByRecruiter: ( callback) => {89 fetchJobAdvertisementsByRecruiter: (recruiterId, callback) => { 90 90 return dispatch => { 91 91 let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER)); 92 axios.get("/job-advertisements/recruiter/" + currentUser.id)92 axios.get("/job-advertisements/recruiter/" + recruiterId) 93 93 .then(response => { 94 94 dispatch({ … … 103 103 }, 104 104 105 filterJobAdvertisementsByRecruiter: ( filter, callback) => {105 filterJobAdvertisementsByRecruiter: (id, filter, callback) => { 106 106 107 107 let currentUser = JSON.parse(localStorage.getItem(CURRENT_USER)); 108 axios.post("/job-advertisements/recruiter/" + currentUser.id + "/filtered", filter)108 axios.post("/job-advertisements/recruiter/" + id + "/filtered", filter) 109 109 .then(response => { 110 110 callback(true, response) … … 116 116 117 117 fetchRecruiterDetailsById: (id, callback) => { 118 axios.get("/recruiter/ info/" + id)118 axios.get("/recruiter/"+id+"/info") 119 119 .then(response => { 120 120 callback(true, response)
Note:
See TracChangeset
for help on using the changeset viewer.