Skip to content

Commit

Permalink
cleaning up endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
qiandrewj committed Oct 24, 2024
1 parent 13abd5b commit a68302b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/modules/Profile/Component/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,14 @@ const Profile = () => {
*/
async function submitReview(review: NewReview, courseId: string) {
try {
const response = await axios.post('/api/reviews/insert', {
const response = await axios.post('/api/reviews/post', {
token: token,
review: review,
courseId: courseId,
})

clearSessionReview()
if (response.status === 200) {
console.log('toast!')
toast.success(
'Thanks for reviewing! New reviews are updated every 24 hours.'
)
Expand Down

0 comments on commit a68302b

Please sign in to comment.