diff --git a/scripts/leetcode.js b/scripts/leetcode.js index 6389a681..d10cf665 100644 --- a/scripts/leetcode.js +++ b/scripts/leetcode.js @@ -67,7 +67,7 @@ const upload = ( cb = undefined, ) => { // To validate user, load user object from GitHub. - const URL = `https://api.github.com/repos/${hook}/contents/${directory}/${filename}`; + const URL = `https://api.github.com/repos/${hook}/contents/${difficulty}/${directory}/${filename}`; /* Define Payload */ let data = {