Skip to content

Commit

Permalink
updated lastPulled to lastPulledLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkendis committed Jan 7, 2021
1 parent ebc1e40 commit eb68f61
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Footer = ({
};

const mapStateToProps = state => ({
lastUpdated: state.metadata.lastPulled,
lastUpdated: state.metadata.lastPulledLocal,
});

Footer.propTypes = {
Expand Down
2 changes: 1 addition & 1 deletion client/components/Map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MapContainer extends React.Component {
const mapStateToProps = state => ({
pins: state.data.pins,
position: state.ui.map,
lastUpdated: state.metadata.lastPulled,
lastUpdated: state.metadata.lastPulledLocal,
activeMode: state.ui.map.activeMode,
requestTypes: state.mapFilters.requestTypes,
});
Expand Down
6 changes: 4 additions & 2 deletions client/redux/reducers/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ export const getRegionsSuccess = response => ({
});

const initialState = {
currentTime: null,
currentTimeUTC: null,
currentTimeLocal: null,
gitSha: null,
version: null,
lastPulled: null,
lastPulledUTC: null,
lastPulledLocal: null,
requestTypes: null,
councils: null,
regions: null,
Expand Down
6 changes: 3 additions & 3 deletions client/redux/sagas/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function* getMetadata() {
try {
const [metadata, requestTypes, councils, regions] = yield all([
call(axios.get, `${baseUrl}/status/api`),
call(axios.get, `${baseUrl}/types/`),
call(axios.get, `${baseUrl}/councils/`),
call(axios.get, `${baseUrl}/regions/`),
call(axios.get, `${baseUrl}/types`),
call(axios.get, `${baseUrl}/councils`),
call(axios.get, `${baseUrl}/regions`),
]);
const { data: statusMetadata } = metadata;
const { data: typesMetadata } = requestTypes;
Expand Down

0 comments on commit eb68f61

Please sign in to comment.