Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2934db2 commit b704492Copy full SHA for b704492
‎client/packages/lowcoder/src/pages/setting/environments/services/enterprise.service.ts
@@ -161,11 +161,14 @@ export const connectManagedDataSource = async (
161
datasourceGid: string
162
): Promise<void> => {
163
try {
164
- await axios.post(`/api/plugins/enterprise/datasource`, {
165
- environmentId,
+ const payload = {
+ environment_id: environmentId,
166
name,
167
- datasourceGid
168
- });
+ datasource_gid: datasourceGid,
+ };
169
+
170
171
+ await axios.post(`/api/plugins/enterprise/datasource`, payload);
172
} catch (error) {
173
console.error("Error connecting managed data source:", error);
174
throw error;
0 commit comments