From 3e53584768962b9fe3e01d23290f907d9cbf9bd0 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 23 Nov 2021 08:21:38 +0800 Subject: [PATCH] fix: remove state property --- packages/plugin-permissions/src/collections/roles.ts | 3 --- packages/plugin-users/src/server.ts | 2 -- 2 files changed, 5 deletions(-) diff --git a/packages/plugin-permissions/src/collections/roles.ts b/packages/plugin-permissions/src/collections/roles.ts index f7e37e182..25aa47ff0 100644 --- a/packages/plugin-permissions/src/collections/roles.ts +++ b/packages/plugin-permissions/src/collections/roles.ts @@ -27,21 +27,18 @@ export default { type: 'hasMany', name: 'actionPermissions', target: 'action_permissions', - state: 0, }, { type: 'belongsToMany', name: 'users', target: 'users', through: 'roles_users', - state: 0, }, { type: 'belongsToMany', name: 'ui_schemas', target: 'ui_schemas', through: 'roles_ui_schemas', - state: 0, }, ], } as TableOptions; diff --git a/packages/plugin-users/src/server.ts b/packages/plugin-users/src/server.ts index 619089403..24a7062b7 100644 --- a/packages/plugin-users/src/server.ts +++ b/packages/plugin-users/src/server.ts @@ -29,7 +29,6 @@ export default { type: 'createdBy', name: typeof createdBy === 'string' ? createdBy : 'createdBy', target: 'users', - state: 0, }); } if (updatedBy !== false) { @@ -37,7 +36,6 @@ export default { type: 'updatedBy', name: typeof updatedBy === 'string' ? updatedBy : 'updatedBy', target: 'users', - state: 0, }); } });