Skip to content

Commit

Permalink
make assignmentAlogrithm optional
Browse files Browse the repository at this point in the history
  • Loading branch information
RidhamShah committed Oct 3, 2023
1 parent ea8c76c commit 74951f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/packages/Upgrade/src/api/DTO/ExperimentDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class ExperimentDTO {

@IsOptional()
@IsEnum(ASSIGNMENT_ALGORITHM)
public assignmentAlgorithm: ASSIGNMENT_ALGORITHM;
public assignmentAlgorithm?: ASSIGNMENT_ALGORITHM;

// TODO add conditional validity here ie endOn is null
@IsOptional()
Expand Down
1 change: 1 addition & 0 deletions backend/packages/Upgrade/src/api/models/Experiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class Experiment extends BaseModel {
@Column({
type: 'enum',
enum: ASSIGNMENT_ALGORITHM,
default: ASSIGNMENT_ALGORITHM.RANDOM,
})
public assignmentAlgorithm: ASSIGNMENT_ALGORITHM;

Expand Down

0 comments on commit 74951f3

Please sign in to comment.