File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
redisinsight/api/src/modules/workbench Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ export class CreateCommandExecutionDto {
45
45
46
46
@ApiPropertyOptional ( {
47
47
description : 'Workbench group mode' ,
48
- default : false ,
48
+ default : ResultsMode . Default ,
49
+ enum : ResultsMode ,
49
50
} )
50
51
@IsOptional ( )
51
52
@IsEnum ( ResultsMode , {
Original file line number Diff line number Diff line change @@ -66,13 +66,6 @@ export class CommandExecution {
66
66
@Expose ( )
67
67
resultsMode ?: ResultsMode = ResultsMode . Default ;
68
68
69
- @ApiPropertyOptional ( {
70
- description : 'Group mode' ,
71
- type : Boolean ,
72
- } )
73
- @Expose ( )
74
- isGroupMode ?: boolean ;
75
-
76
69
@ApiPropertyOptional ( {
77
70
description : 'Workbench executions summary' ,
78
71
type : ( ) => ResultsSummary ,
@@ -89,8 +82,8 @@ export class CommandExecution {
89
82
result : CommandExecutionResult [ ] ;
90
83
91
84
@ApiPropertyOptional ( {
92
- type : Boolean ,
93
85
description : 'Result did not stored in db' ,
86
+ type : Boolean ,
94
87
} )
95
88
@Expose ( )
96
89
isNotStored ?: boolean ;
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export class CommandExecutionProvider {
45
45
} ,
46
46
] ) ;
47
47
}
48
+
48
49
return this . encryptEntity ( entity ) ;
49
50
} ) ) ;
50
51
@@ -64,12 +65,14 @@ export class CommandExecutionProvider {
64
65
} ,
65
66
) ) ,
66
67
) ;
68
+
67
69
// cleanup history and ignore error if any
68
70
try {
69
71
await this . cleanupDatabaseHistory ( entities [ 0 ] . databaseId ) ;
70
72
} catch ( e ) {
71
73
this . logger . error ( 'Error when trying to cleanup history after insert' , e ) ;
72
74
}
75
+
73
76
return response ;
74
77
}
75
78
You can’t perform that action at this time.
0 commit comments