Skip to content

Commit

Permalink
add creator id to createflow mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Oct 28, 2024
1 parent 54be9e0 commit f29e8cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/requests/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class FlowClient {

async create(args: {
teamId: number;
userId: number;
slug: string;
name: string;
data?: object;
Expand Down Expand Up @@ -132,6 +133,7 @@ export async function createFlow(
client: GraphQLClient,
args: {
teamId: number;
userId: number;
slug: string;
name: string;
data?: object;
Expand All @@ -142,13 +144,15 @@ export async function createFlow(
gql`
mutation CreateFlow(
$teamId: Int!
$userId: Int!
$flowSlug: String!
$flowName: String!
$data: jsonb
$status: flow_status_enum_enum
) {
insert_flows_one(
object: {
creator_id: $userId
team_id: $teamId
slug: $flowSlug
name: $flowName
Expand All @@ -163,6 +167,7 @@ export async function createFlow(
`,
{
teamId: args.teamId,
userId: args.userId,
flowSlug: args.slug,
flowName: args.name,
data: args.data,
Expand Down

0 comments on commit f29e8cc

Please sign in to comment.