File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
components/gong/actions/get-extensive-data Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default {
79
79
const calls = await app . paginate ( {
80
80
resourceFn : getExtensiveData ,
81
81
resourceFnArgs : {
82
- $,
82
+ step : $ ,
83
83
data : {
84
84
filter,
85
85
} ,
@@ -92,8 +92,14 @@ export default {
92
92
$ . export ( "$summary" , `Successfully retrieved data for ${ calls . length } calls` ) ;
93
93
}
94
94
return calls ;
95
- } catch {
96
- $ . export ( "$summary" , "No calls found matching the provided criteria" ) ;
95
+ }
96
+ catch ( error ) {
97
+ const noCallsMessage = "No calls found corresponding to the provided filters" ;
98
+ if ( error ?. message . includes ( noCallsMessage ) ) {
99
+ $ . export ( "$summary" , noCallsMessage ) ;
100
+ } else {
101
+ throw new ConfigurationError ( `${ error ?. message } ` ) ;
102
+ }
97
103
}
98
104
} ,
99
105
} ;
You can’t perform that action at this time.
0 commit comments