Skip to content

Commit 6d2f42c

Browse files
author
FalkWolsky
committed
Updating n8n DataSource
1 parent 102a1a4 commit 6d2f42c

File tree

5 files changed

+14455
-8828
lines changed

5 files changed

+14455
-8828
lines changed

client/packages/lowcoder/src/util/context/SimpleSubscriptionContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const SimpleSubscriptionContextProvider = (props: {
9696
};
9797

9898
if (!productsLoaded && !subscriptionProductsLoading && !user.isAnonymous) {
99-
console.log("Outer context: Fetching products...");
99+
// console.log("Outer context: Fetching products...");
100100
setSubscriptionProductsLoading(true);
101101
fetchProducts();
102102
}

server/node-service/src/plugins/n8n/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import { badRequest } from "common/error";
2+
import path from "path";
23
import { OpenAPIV3, OpenAPI } from "openapi-types";
34
import { ConfigToType, DataSourcePlugin } from "lowcoder-sdk/dataSource";
45
import { runOpenApi } from "../openApi";
56
import { defaultParseOpenApiOptions, parseOpenApi, ParseOpenApiOptions } from "../openApi/parse";
6-
import spec from "./spec.json";
7-
import { specsToOptions, version2spec } from "../../common/util";
7+
import { readYaml, specsToOptions, version2spec } from "../../common/util";
8+
9+
const spec_1_1_0 = readYaml(path.join(__dirname, "./openapi_1_1_0.yml"));
10+
const spec_1_1_1 = readYaml(path.join(__dirname, "./openapi_1_1_1.yml"));
11+
812
const specs = {
9-
"v1.0": spec,
13+
"v1.1.0": spec_1_1_0,
14+
"v1.1.1": spec_1_1_1
1015
}
1116

1217
export function prepareServerUrl(url: string) {

0 commit comments

Comments
 (0)