Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New fields and relations for getSummitById function #552

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/actions/attendee-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const getAttendees =
const { currentSummitState } = getState();
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;
dispatch(startLoading());

const params = {
Expand Down Expand Up @@ -311,7 +311,9 @@ export const getAttendee = (attendeeId) => async (dispatch, getState) => {
createAction(RECEIVE_ATTENDEE),
`${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}/attendees/${attendeeId}`,
authErrorHandler
)(params)(dispatch).then(({ response }) => getAttendeeOrders(response)(dispatch, getState));
)(params)(dispatch).then(({ response }) =>
getAttendeeOrders(response)(dispatch, getState)
);
};

export const getAttendeeOrders = (attendee) => async (dispatch) => {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/audit-log-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const getAuditLog =
const { currentSummitState } = getState();
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;
const summitFilter = [`summit_id==${currentSummit.id}`];

dispatch(startLoading());
Expand Down
8 changes: 4 additions & 4 deletions src/actions/event-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export const getEvents =
const { currentSummitState } = getState();
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;

dispatch(startLoading());

Expand Down Expand Up @@ -665,7 +665,7 @@ export const getEventsForOccupancy =
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const filter = [];
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;
let endPoint = "events/published";

dispatch(startLoading());
Expand Down Expand Up @@ -731,7 +731,7 @@ export const getEventsForOccupancyCSV =
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const filter = [];
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;

dispatch(startLoading());

Expand Down Expand Up @@ -792,7 +792,7 @@ export const getCurrentEventForOccupancy =
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const filter = [];
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;
let endPoint = `${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}`;

dispatch(startLoading());
Expand Down
2 changes: 1 addition & 1 deletion src/actions/order-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export const getPurchaseOrders =
const { currentSummitState } = getState();
const accessToken = await getAccessTokenSafely();
const { currentSummit } = currentSummitState;
const summitTZ = currentSummit.time_zone.name;
const summitTZ = currentSummit.time_zone_id;

dispatch(startLoading());

Expand Down
Loading
Loading