Skip to content

Commit 697d332

Browse files
committed
feat: Add ref code to createTeam and pass to createProject. Resolves: topcoder-platform/taas-app/#365
1 parent a7a9dea commit 697d332

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/TeamService.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,10 @@ async function createTeam (currentUser, data) {
10361036
description: data.teamDescription,
10371037
type: 'talent-as-a-service',
10381038
details: {
1039-
positions: data.positions
1039+
positions: data.positions,
1040+
utm: {
1041+
code: data.refCode
1042+
}
10401043
}
10411044
}
10421045
// create project with given data
@@ -1072,6 +1075,7 @@ createTeam.schema = Joi.object()
10721075
data: Joi.object().keys({
10731076
teamName: Joi.string().required(),
10741077
teamDescription: Joi.string(),
1078+
refCode: Joi.string(),
10751079
positions: Joi.array().items(
10761080
Joi.object().keys({
10771081
roleName: Joi.string().required(),

0 commit comments

Comments
 (0)