Skip to content

Commit

Permalink
add job number input to stream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dtnaughton committed Dec 13, 2023
1 parent 6b6a345 commit 19203ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/frontend/src/graphql/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@ export type ProjectCreateInput = {
description?: InputMaybe<Scalars['String']>;
name?: InputMaybe<Scalars['String']>;
visibility?: InputMaybe<ProjectVisibility>;
jobNumber?: InputMaybe<Scalars['String']>;
};

export type ProjectInviteCreateInput = {
Expand Down
1 change: 1 addition & 0 deletions packages/server/modules/core/graph/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,7 @@ export type ProjectCreateInput = {
description?: InputMaybe<Scalars['String']>;
name?: InputMaybe<Scalars['String']>;
visibility?: InputMaybe<ProjectVisibility>;
jobNumber?: InputMaybe<Scalars['String']>;
};

export type ProjectInviteCreateInput = {
Expand Down
3 changes: 2 additions & 1 deletion packages/server/modules/core/repositories/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ export async function createStream(
trx: Knex.Transaction
}>
) {
const { name, description } = input
const { name, description, jobNumber } = input
const { ownerId, trx } = options || {}

let shouldBePublic: boolean, shouldBeDiscoverable: boolean
Expand All @@ -743,6 +743,7 @@ export async function createStream(
description: description || '',
isPublic: shouldBePublic,
isDiscoverable: shouldBeDiscoverable,
jobNumber: jobNumber || '',
updatedAt: knex.fn.now()
}

Expand Down

0 comments on commit 19203ff

Please sign in to comment.