File tree 1 file changed +10
-8
lines changed
libs/server/src/lib/utils
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,11 @@ export async function getCollectionInfo(
119
119
} ;
120
120
} ;
121
121
122
- for ( const [ key , schema ] of Object . entries < any > (
123
- executorCollectionJson . executors || executorCollectionJson . executors || { }
124
- ) ) {
122
+ const executors = {
123
+ ...executorCollectionJson . executors ,
124
+ ...executorCollectionJson . builders ,
125
+ } ;
126
+ for ( const [ key , schema ] of Object . entries < any > ( executors ) ) {
125
127
if ( ! canUse ( key , schema ) ) {
126
128
continue ;
127
129
}
@@ -132,11 +134,11 @@ export async function getCollectionInfo(
132
134
collectionMap . set ( collectionInfo . name , collectionInfo ) ;
133
135
}
134
136
135
- for ( const [ key , schema ] of Object . entries < any > (
136
- generatorCollectionJson . generators ||
137
- generatorCollectionJson . schematics ||
138
- { }
139
- ) ) {
137
+ const generators = {
138
+ ... generatorCollectionJson . generators ,
139
+ ... generatorCollectionJson . schematics ,
140
+ } ;
141
+ for ( const [ key , schema ] of Object . entries < any > ( generators ) ) {
140
142
if ( ! canUse ( key , schema ) ) {
141
143
continue ;
142
144
}
You can’t perform that action at this time.
0 commit comments