Skip to content

Commit b1cde1a

Browse files
committed
test.service. types are fixed
1 parent 2cc09c1 commit b1cde1a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/test-runs/test-runs.service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export class TestRunsService {
3636
});
3737
}
3838

39-
async approve(id: string): Promise<TestRun> {
39+
async approve(id: string): Promise<TestRun & {
40+
testVariation: TestVariation;
41+
}> {
4042
const testRun = await this.findOne(id);
4143
return this.prismaService.testRun.update({
4244
where: { id },
@@ -54,7 +56,9 @@ export class TestRunsService {
5456
});
5557
}
5658

57-
async reject(id: string): Promise<TestRun> {
59+
async reject(id: string): Promise<TestRun & {
60+
testVariation: TestVariation;
61+
}> {
5862
return this.prismaService.testRun.update({
5963
where: { id },
6064
include: {

src/test/test.service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ export class TestService {
3838
return this.testRunsService.delete(id);
3939
}
4040

41-
async approveTestRun(testRunId: string): Promise<TestRun> {
41+
async approveTestRun(testRunId: string): Promise<TestRun & {
42+
testVariation: TestVariation;
43+
}> {
4244
return this.testRunsService.approve(testRunId);
4345
}
4446

45-
async rejectTestRun(testRunId: string): Promise<TestRun> {
47+
async rejectTestRun(testRunId: string): Promise<TestRun & {
48+
testVariation: TestVariation;
49+
}> {
4650
return this.testRunsService.reject(testRunId);
4751
}
4852

0 commit comments

Comments
 (0)