From d17feadd61991d7e8ee1d2b03d897ff747d2bb35 Mon Sep 17 00:00:00 2001 From: Dan Hoizner Date: Wed, 24 Jun 2020 18:43:10 -0400 Subject: [PATCH] update examples.js to strip the proper ref name. --- server/scripts/examples.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scripts/examples.js b/server/scripts/examples.js index 7e11fe3d..be0d4ef4 100644 --- a/server/scripts/examples.js +++ b/server/scripts/examples.js @@ -73,7 +73,7 @@ function getCategories() { function getSketchesInCategories(categories) { return Q.all(categories.map((category) => { const options = { - url: `${category.url.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`, + url: `${category.url.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`, method: 'GET', headers, json: true @@ -107,7 +107,7 @@ function getSketchesInCategories(categories) { function getSketchContent(projectsInAllCategories) { return Q.all(projectsInAllCategories.map(projectsInOneCategory => Q.all(projectsInOneCategory.map((project) => { const options = { - url: `${project.sketchUrl.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`, + url: `${project.sketchUrl.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`, method: 'GET', headers };