Skip to content

Commit

Permalink
chore: Update team.create() to account for new team_themes table …
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Jan 2, 2024
1 parent d3076c9 commit a1ca966
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/requests/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class TeamClient {
name: string;
slug: string;
logo: string;
primaryColor: string;
primaryColour: string;
homepage: string;
submissionEmail: string;
}): Promise<number> {
Expand Down Expand Up @@ -96,14 +96,14 @@ export async function createTeam(
name,
slug,
logo,
primaryColor,
primaryColour,
homepage,
submissionEmail,
}: {
name: string;
slug: string;
logo: string;
primaryColor: string;
primaryColour: string;
homepage: string;
submissionEmail: string;
},
Expand All @@ -113,7 +113,7 @@ export async function createTeam(
slug,
theme: {
logo,
primary: primaryColor,
primary_colour: primaryColour,
},
submissionEmail,
settings: {
Expand All @@ -127,7 +127,7 @@ export async function createTeam(
mutation CreateTeam(
$name: String!
$slug: String!
$theme: jsonb!
$theme: team_themes_insert_input!
$settings: jsonb!
$submissionEmail: String!
$notifyPersonalisation: jsonb!
Expand All @@ -136,7 +136,7 @@ export async function createTeam(
object: {
name: $name
slug: $slug
theme: $theme
theme: { data: $theme }
settings: $settings
submission_email: $submissionEmail
notify_personalisation: $notifyPersonalisation
Expand Down

0 comments on commit a1ca966

Please sign in to comment.