fix: remove state property

This commit is contained in:
chenos 2021-11-23 08:21:38 +08:00
parent 2f61103e42
commit 3e53584768
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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,
});
}
});