@nocobase/plugin-data-source-manager
Advanced tools
Comparing version 0.20.0-alpha.17 to 0.21.0-alpha.1
module.exports = { | ||
"@nocobase/client": "0.20.0-alpha.17", | ||
"@nocobase/client": "0.21.0-alpha.1", | ||
"react": "18.2.0", | ||
"@nocobase/server": "0.20.0-alpha.17", | ||
"@nocobase/server": "0.21.0-alpha.1", | ||
"lodash": "4.17.21", | ||
@@ -13,6 +13,6 @@ "@ant-design/icons": "5.2.6", | ||
"@emotion/css": "11.11.2", | ||
"@nocobase/database": "0.20.0-alpha.17", | ||
"@nocobase/utils": "0.20.0-alpha.17", | ||
"@nocobase/plugin-acl": "0.20.0-alpha.17", | ||
"@nocobase/acl": "0.20.0-alpha.17", | ||
"@nocobase/database": "0.21.0-alpha.1", | ||
"@nocobase/utils": "0.21.0-alpha.1", | ||
"@nocobase/plugin-acl": "0.21.0-alpha.1", | ||
"@nocobase/acl": "0.21.0-alpha.1", | ||
"sequelize": "6.35.2", | ||
@@ -19,0 +19,0 @@ "@formily/antd-v5": "1.1.9", |
@@ -48,2 +48,19 @@ var __defProp = Object.defineProperty; | ||
} | ||
if (params.values.resources) { | ||
await ctx.db.getRepository("dataSourcesRolesResources").destroy({ | ||
filter: { | ||
roleName: name, | ||
dataSourceKey | ||
} | ||
}); | ||
for (const resource of params.values.resources) { | ||
await ctx.db.getRepository("dataSourcesRolesResources").create({ | ||
values: { | ||
...resource, | ||
roleName: name, | ||
dataSourceKey | ||
} | ||
}); | ||
} | ||
} | ||
ctx.body = connectionRoleRecord.toJSON(); | ||
@@ -50,0 +67,0 @@ await next(); |
{ | ||
"name": "@nocobase/plugin-data-source-manager", | ||
"version": "0.20.0-alpha.17", | ||
"version": "0.21.0-alpha.1", | ||
"main": "dist/server/index.js", | ||
@@ -19,3 +19,3 @@ "displayName": "Data source manager", | ||
], | ||
"gitHead": "a2460c222bc0b8a3bcb783b5c856499d756efa82" | ||
"gitHead": "afd2f3d1341b85ea9daa7b2667dd4ace1fafb7ff" | ||
} |
Sorry, the diff of this file is too big to display
251524
4004