From 6d446f3f89682ec5b655ba602555fde6fbf64ee0 Mon Sep 17 00:00:00 2001 From: Kiril Kartunov Date: Wed, 9 Sep 2020 11:07:46 +0300 Subject: [PATCH] Sort gigs by create date and CORS fix for test env --- src/shared/containers/Gigs/RecruitCRMJobs.jsx | 2 +- src/shared/services/contentful.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shared/containers/Gigs/RecruitCRMJobs.jsx b/src/shared/containers/Gigs/RecruitCRMJobs.jsx index e9ffd09d65..d09ba71afc 100644 --- a/src/shared/containers/Gigs/RecruitCRMJobs.jsx +++ b/src/shared/containers/Gigs/RecruitCRMJobs.jsx @@ -22,7 +22,7 @@ class RecruitCRMJobsContainer extends React.Component { this.state = { term: '', page: 0, - sortBy: 'updated_on', + sortBy: 'created_on', }; this.onSearch = this.onSearch.bind(this); diff --git a/src/shared/services/contentful.js b/src/shared/services/contentful.js index 1a9e162da7..4508f76d6d 100644 --- a/src/shared/services/contentful.js +++ b/src/shared/services/contentful.js @@ -21,8 +21,6 @@ if (isomorphy.isServerSide()) { /* eslint-enable global-require */ } -const LOCAL_MODE = Boolean(config.CONTENTFUL.LOCAL_MODE); - // Education Center Taxonomy const EDU_TAXONOMY_ID = '15caxocitaxyK65K9oSd91'; // The keys for subcategory lists/references @@ -37,7 +35,7 @@ const EDU_ARTICLE_TYPES = ['Article', 'Video', 'Forum post']; /* Holds the base URL of Community App endpoints that proxy HTTP request to * Contentful APIs. */ -const PROXY_ENDPOINT = `${LOCAL_MODE ? '' : config.URL.APP}/api/cdn/public/contentful`; +const PROXY_ENDPOINT = '/api/cdn/public/contentful'; /* At the client-side only, it holds the cached index of published Contentful * assets and content. Do not use it directly, use getIndex() function below * instead (it takes care about updating this when necessary). */