File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments