File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ const INTERCEPTOR_TIMEOUT = 1000;
114114const buildResolvers = (
115115 config : HtkConfig ,
116116 interceptors : _ . Dictionary < Interceptor > ,
117- mockttpAdminServer : MockttpAdminServer ,
117+ ruleParamKeys : string [ ] ,
118118 eventEmitter : events . EventEmitter
119119) => {
120120 return {
@@ -140,7 +140,7 @@ const buildResolvers = (
140140 return [ `127.0.0.1:${ dnsServer . address ( ) . port } ` ] ;
141141 } ,
142142 ruleParameterKeys : async ( ) : Promise < String [ ] > => {
143- return mockttpAdminServer . ruleParameterKeys ;
143+ return ruleParamKeys ;
144144 }
145145 } ,
146146
@@ -276,14 +276,14 @@ export class HttpToolkitServerApi extends events.EventEmitter {
276276
277277 private server : express . Application ;
278278
279- constructor ( config : HtkConfig , mockttpAdminServer : MockttpAdminServer ) {
279+ constructor ( config : HtkConfig , ruleParamKeys : string [ ] ) {
280280 super ( ) ;
281281
282282 let interceptors = buildInterceptors ( config ) ;
283283
284284 const schema = makeExecutableSchema ( {
285285 typeDefs,
286- resolvers : buildResolvers ( config , interceptors , mockttpAdminServer , this )
286+ resolvers : buildResolvers ( config , interceptors , ruleParamKeys , this )
287287 } ) ;
288288
289289 this . server = express ( ) ;
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export async function runHTK(options: {
144144 configPath,
145145 authToken : options . authToken ,
146146 https : httpsConfig
147- } , standalone ) ;
147+ } , standalone . ruleParameterKeys ) ;
148148
149149 const updateMutex = new Mutex ( ) ;
150150 apiServer . on ( 'update-requested' , ( ) => {
You can’t perform that action at this time.
0 commit comments