Skip to content

Commit

Permalink
feat: Add boundary_bbox to team_settings Types and Functions (#…
Browse files Browse the repository at this point in the history
…438)

## What does this PR do?

This PR updates functions and types relating to ``team_settings`` with
the new ``boundary_bbox`` column which replaces the previous
``boundary_json`` column:
theopensystemslab/planx-new#3375
  • Loading branch information
RODO94 authored Jul 5, 2024
1 parent 60158b2 commit 792f453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/requests/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async function getBySlug(client: GraphQLClient, slug: string) {
}
teamSettings: team_settings {
boundaryUrl: boundary_url
boundaryJson: boundary_json
boundaryBbox: boundary_bbox
referenceCode: reference_code
helpEmail: help_email
helpPhone: help_phone
Expand Down Expand Up @@ -452,6 +452,7 @@ async function updateTeamSettings(
team_id: teamId,
teamSettings: {
boundary_url: teamSettings.boundaryUrl,
boundary_bbox: teamSettings.boundaryBbox,
reference_code: teamSettings.referenceCode,
help_email: teamSettings.helpEmail,
help_phone: teamSettings.helpPhone,
Expand Down
2 changes: 1 addition & 1 deletion src/types/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface TeamTheme {

export interface TeamSettings {
boundaryUrl: string;
boundaryJson?: GeoJsonObject;
boundaryBbox?: GeoJsonObject;
referenceCode: string;
helpEmail: string;
helpPhone: string;
Expand Down

0 comments on commit 792f453

Please sign in to comment.