kossiitkgp / KWoC-Frontend

Frontend Repo for Kharagpur Winter of Code, built in React
https://kwoc.kossiitkgp.org/
GNU General Public License v3.0
21 stars 40 forks source link

update stats api to not ask for mentor projects with request #74

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 2 years ago

update stats api to not ask for mentor projects with request

fetch(${BACKEND_URL}/stats/mentor, {

body: JSON.stringify({ projects: repoNames }),

})

.then((res) => res.json())

.then((res) => {

console.log("res. is ", res);

});

https://github.com/kossiitkgp/KWoC-21-Frontend/blob/fa6c1f810d6e12451dc5e5ac805c2fdfb4d33434/src/views/MentorDashboard.js#L116


        alert("Server Error, Please try again");
      });

    // TODO: update stats api to not ask for mentor projects with request
    // fetch(`${BACKEND_URL}/stats/mentor`, {
    //   body: JSON.stringify({ projects: repoNames }),
    // })
    //   .then((res) => res.json())
    //   .then((res) => {
    //     console.log("res. is ", res);
    //   });
  }, []);

  let resourceList = [];

f8f0612f3409b5aedb0d51d423a41c36c94fb68e

github-actions[bot] commented 1 year ago

Closed in 6a0e12b75748af114f3cfdb2b5a6b1f3498945f9