Skip to content

Commit aa470aa

Browse files
authored
Merge pull request #489 from cagdas001/dev
feat(teams): accept `intakeSource` in `createTeam` request
2 parents 7057e45 + d9387cf commit aa470aa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/swagger.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5842,6 +5842,9 @@ components:
58425842
refCode:
58435843
type: string
58445844
description: "Optional referral code"
5845+
intakeSource:
5846+
type: string
5847+
description: "The source of the intake."
58455848
positions:
58465849
type: array
58475850
description: "The array of positions"

src/services/TeamService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,8 @@ async function createTeam (currentUser, data) {
10381038
details: {
10391039
positions: data.positions,
10401040
utm: {
1041-
code: data.refCode
1041+
code: data.refCode,
1042+
intakeSource: data.intakeSource
10421043
}
10431044
}
10441045
}
@@ -1077,6 +1078,7 @@ createTeam.schema = Joi.object()
10771078
teamName: Joi.string().required(),
10781079
teamDescription: Joi.string(),
10791080
refCode: Joi.string(),
1081+
intakeSource: Joi.string(),
10801082
positions: Joi.array().items(
10811083
Joi.object().keys({
10821084
roleName: Joi.string().required(),

0 commit comments

Comments
 (0)