Skip to content

Commit f1e208f

Browse files
committed
fix: testing executeEndpoint
1 parent b0dd656 commit f1e208f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/server.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class CoCreateLazyLoader {
9999
let name = data.method.split(".")[0];
100100
let method = data.endpoint.split(" ")[0].toUpperCase();
101101

102-
data = await this.processOperators(data, "", name);
102+
// data = await this.processOperators(data, "", name);
103103

104104
let apiConfig = await this.getApiConfig(data, name);
105105
// --- Refined Validation ---
@@ -111,7 +111,7 @@ class CoCreateLazyLoader {
111111
`Configuration error: Missing base url for API '${name}'.`
112112
);
113113
}
114-
apiConfig = await this.processOperators(data, getApiConfig, "");
114+
// apiConfig = await this.processOperators(data, getApiConfig, "");
115115

116116
let override = apiConfig.endpoint?.[data.endpoint] || {};
117117

@@ -255,6 +255,10 @@ class CoCreateLazyLoader {
255255
* @throws {Error} If the request fails or returns a non-ok status.
256256
*/
257257
async makeHttpRequest(url, options) {
258+
if (!this.server.AbortController) {
259+
console.log("makeHttpRequest test");
260+
return {};
261+
}
258262
const controller = new this.server.AbortController();
259263
const timeoutId = setTimeout(() => controller.abort(), options.timeout);
260264
options.signal = controller.signal;

0 commit comments

Comments
 (0)