From 50fce835e4ea7b5023239326ac6b5b24003c3e77 Mon Sep 17 00:00:00 2001 From: Samip Suwal Date: Wed, 16 Feb 2022 19:29:21 -0800 Subject: [PATCH] add solutions in directory according to the difficulty --- scripts/leetcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {