Skip to content
Snippets Groups Projects
Commit 041074b9 authored by / /\ / /\/'s avatar / /\ / /\/
Browse files

use for new env var

parent 21fc7ee9
No related branches found
No related tags found
No related merge requests found
import { put, takeEvery, call } from 'redux-saga/effects';
import config from 'config';
import axios from 'axios';
import * as reducer from 'app/redux/SearchReducer';
export const searchWatches = [takeEvery('search/SEARCH_DISPATCH', search)];
......@@ -14,7 +12,7 @@ export function* search(action) {
method: 'POST',
headers: {
'Content-type': 'application/json',
Authorization: config.esteem_elastic_search_api_key,
Authorization: $STM_Config.esteem_elastic_search_api_key,
},
body: JSON.stringify({
q: searchParams.category,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment