File tree 1 file changed +3
-3
lines changed
gql-bff/src/features/workflow
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const workflowResolvers = {
47
47
48
48
exportWorkflows : async (
49
49
_parent ,
50
- { workflowList, prefix, allHandlers } ,
50
+ { workflowList, prefix = '' , allHandlers } ,
51
51
context ,
52
52
_info
53
53
) => {
@@ -62,7 +62,7 @@ const workflowResolvers = {
62
62
if ( workflowList . length === 0 ) {
63
63
const allWorkflows = await dataSources . workflowApi . getWorkflowList ( ) ;
64
64
if ( isMultiTenant ) {
65
- const tenantPrefix = prefix . toUpperCase ( ) . startsWith ( code . toUpperCase ( ) ) ? prefix : `${ code . toUpperCase ( ) } _${ prefix . toUpperCase ( ) } ` ;
65
+ const tenantPrefix = prefix ? .toUpperCase ( ) . startsWith ( code . toUpperCase ( ) ) ? prefix : `${ code . toUpperCase ( ) } _${ prefix ? .toUpperCase ( ) } ` ;
66
66
const tenantFlows = filterResourcesByTenant ( allWorkflows , tenant ?. id ) ;
67
67
for ( const flow of tenantFlows ) {
68
68
if ( ! flow . name . startsWith ( tenantPrefix ) ) {
@@ -141,7 +141,7 @@ const workflowResolvers = {
141
141
//Add all handlers
142
142
if ( allHandlers ) {
143
143
if ( isMultiTenant ) {
144
- const tenantPrefix = prefix . toUpperCase ( ) . startsWith ( code . toUpperCase ( ) ) ? prefix : `${ code . toUpperCase ( ) } _${ prefix . toUpperCase ( ) } ` ;
144
+ const tenantPrefix = prefix ? .toUpperCase ( ) . startsWith ( code . toUpperCase ( ) ) ? prefix : `${ code . toUpperCase ( ) } _${ prefix ? .toUpperCase ( ) } ` ;
145
145
const tenantHandlers = filterEvHandlersByTenant (
146
146
conductorHandlers ,
147
147
tenant ?. id
You can’t perform that action at this time.
0 commit comments