mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-07 13:42:34 +00:00
chore: update workspace user pages
This commit is contained in:
@ -60,6 +60,25 @@ const workspaceService = {
|
||||
await api.deleteWorkspaceById(id);
|
||||
store.dispatch(deleteWorkspace(id));
|
||||
},
|
||||
|
||||
getWorkspaceUserList: async (id: WorkspaceId) => {
|
||||
const { data } = (
|
||||
await api.getWorkspaceUserList({
|
||||
workspaceId: id,
|
||||
})
|
||||
).data;
|
||||
return data;
|
||||
},
|
||||
|
||||
getWorkspaceUser: async (workspaceId: WorkspaceId, userId: UserId) => {
|
||||
const { data } = (
|
||||
await api.getWorkspaceUser({
|
||||
workspaceId: workspaceId,
|
||||
userId: userId,
|
||||
})
|
||||
).data;
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
export default workspaceService;
|
||||
|
Reference in New Issue
Block a user