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

fix: Correct destructuring in queries for teamSettings #3417

Merged
merged 2 commits into from
Jul 12, 2024
Merged
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
11 changes: 10 additions & 1 deletion api.planx.uk/modules/saveAndReturn/service/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,16 @@ const validateSingleSessionRequest = async (
team {
name
slug
settings: team_settings
settings: team_settings {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Columns need to be specified for relationships. This response now matches the TeamSettings type.

boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
helpEmail: help_email
helpPhone: help_phone
helpOpeningHours: help_opening_hours
emailReplyToId: email_reply_to_id
boundaryBBox: boundary_bbox
}
domain
}
}
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/draft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const fetchSettingsForDraftView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/published.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const fetchSettingsForPublishedView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down
2 changes: 1 addition & 1 deletion editor.planx.uk/src/routes/views/standalone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const fetchDataForStandaloneView = async (
favicon
}
name
teamSettings: team_settings {
settings: team_settings {
boundaryUrl: boundary_url
boundaryBBox: boundary_bbox
homepage
Expand Down
Loading