fix: remove state property
This commit is contained in:
		
							parent
							
								
									2f61103e42
								
							
						
					
					
						commit
						3e53584768
					
				@ -27,21 +27,18 @@ export default {
 | 
				
			|||||||
      type: 'hasMany',
 | 
					      type: 'hasMany',
 | 
				
			||||||
      name: 'actionPermissions',
 | 
					      name: 'actionPermissions',
 | 
				
			||||||
      target: 'action_permissions',
 | 
					      target: 'action_permissions',
 | 
				
			||||||
      state: 0,
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      type: 'belongsToMany',
 | 
					      type: 'belongsToMany',
 | 
				
			||||||
      name: 'users',
 | 
					      name: 'users',
 | 
				
			||||||
      target: 'users',
 | 
					      target: 'users',
 | 
				
			||||||
      through: 'roles_users',
 | 
					      through: 'roles_users',
 | 
				
			||||||
      state: 0,
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      type: 'belongsToMany',
 | 
					      type: 'belongsToMany',
 | 
				
			||||||
      name: 'ui_schemas',
 | 
					      name: 'ui_schemas',
 | 
				
			||||||
      target: 'ui_schemas',
 | 
					      target: 'ui_schemas',
 | 
				
			||||||
      through: 'roles_ui_schemas',
 | 
					      through: 'roles_ui_schemas',
 | 
				
			||||||
      state: 0,
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
} as TableOptions;
 | 
					} as TableOptions;
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,6 @@ export default {
 | 
				
			|||||||
          type: 'createdBy',
 | 
					          type: 'createdBy',
 | 
				
			||||||
          name: typeof createdBy === 'string' ? createdBy : 'createdBy',
 | 
					          name: typeof createdBy === 'string' ? createdBy : 'createdBy',
 | 
				
			||||||
          target: 'users',
 | 
					          target: 'users',
 | 
				
			||||||
          state: 0,
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      if (updatedBy !== false) {
 | 
					      if (updatedBy !== false) {
 | 
				
			||||||
@ -37,7 +36,6 @@ export default {
 | 
				
			|||||||
          type: 'updatedBy',
 | 
					          type: 'updatedBy',
 | 
				
			||||||
          name: typeof updatedBy === 'string' ? updatedBy : 'updatedBy',
 | 
					          name: typeof updatedBy === 'string' ? updatedBy : 'updatedBy',
 | 
				
			||||||
          target: 'users',
 | 
					          target: 'users',
 | 
				
			||||||
          state: 0,
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user