Skip to content

Commit d85d26f

Browse files
committed
recovered param name for testVariation.find
1 parent d0755d8 commit d85d26f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test-variations/test-variations.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ export class TestVariationsService {
8080
* @returns
8181
*/
8282
async find(
83-
createTestRequestDto: BaselineDataDto & { projectId: string; baselineBranchName?: string }
83+
createTestRequestDto: BaselineDataDto & { projectId: string; sourceBranch?: string }
8484
): Promise<TestVariation | null> {
8585
const project = await this.prismaService.project.findUnique({ where: { id: createTestRequestDto.projectId } });
86-
const baselineBranchName = createTestRequestDto.baselineBranchName ?? project.mainBranchName;
86+
const baselineBranchName = createTestRequestDto.sourceBranch ?? project.mainBranchName;
8787

8888
const [baselineBranchTestVariation, currentBranchTestVariation] = await Promise.all([
8989
// search main branch variation

0 commit comments

Comments
 (0)