Skip to content

Commit d17fead

Browse files
committed
update examples.js to strip the proper ref name.
1 parent e5554cb commit d17fead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/scripts/examples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function getCategories() {
7373
function getSketchesInCategories(categories) {
7474
return Q.all(categories.map((category) => {
7575
const options = {
76-
url: `${category.url.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
76+
url: `${category.url.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
7777
method: 'GET',
7878
headers,
7979
json: true
@@ -107,7 +107,7 @@ function getSketchesInCategories(categories) {
107107
function getSketchContent(projectsInAllCategories) {
108108
return Q.all(projectsInAllCategories.map(projectsInOneCategory => Q.all(projectsInOneCategory.map((project) => {
109109
const options = {
110-
url: `${project.sketchUrl.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
110+
url: `${project.sketchUrl.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
111111
method: 'GET',
112112
headers
113113
};

0 commit comments

Comments
 (0)