feat: make role name unique and remove key usage
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const createRoleMock = async (role, permissions = []) => {
|
||||
const data = {
|
||||
id: role.id,
|
||||
key: role.key,
|
||||
name: role.name,
|
||||
isAdmin: role.isAdmin,
|
||||
description: role.description,
|
||||
|
@@ -1,7 +1,6 @@
|
||||
const getRoleMock = async (role, permissions) => {
|
||||
const data = {
|
||||
id: role.id,
|
||||
key: role.key,
|
||||
name: role.name,
|
||||
isAdmin: role.isAdmin,
|
||||
description: role.description,
|
||||
|
@@ -2,7 +2,6 @@ const getRolesMock = async (roles) => {
|
||||
const data = roles.map((role) => {
|
||||
return {
|
||||
id: role.id,
|
||||
key: role.key,
|
||||
name: role.name,
|
||||
isAdmin: role.isAdmin,
|
||||
description: role.description,
|
||||
|
@@ -9,7 +9,6 @@ const updateUserMock = (user, role) => {
|
||||
updatedAt: user.updatedAt.getTime(),
|
||||
role: {
|
||||
id: role.id,
|
||||
key: role.key,
|
||||
name: role.name,
|
||||
isAdmin: role.isAdmin,
|
||||
createdAt: role.createdAt.getTime(),
|
||||
|
Reference in New Issue
Block a user