feat(infisical-pg): added routes for workspaces and updated frontend

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:22 +05:30
parent 498a90c484
commit 4f3582a98b
31 changed files with 953 additions and 132 deletions
@@ -142,7 +142,7 @@ export const MemberListTab = () => {
if (!currentOrg?.id) return;
try {
await removeUserFromWorkspace(membershipId);
await removeUserFromWorkspace({ workspaceId, membershipId });
createNotification({
text: "Successfully removed user from workspace",
type: "success"
@@ -182,7 +182,7 @@ export const MemberListTab = () => {
return;
}
await updateUserWorkspaceRole({ membershipId, role });
await updateUserWorkspaceRole({ membershipId, role, workspaceId });
createNotification({
text: "Successfully updated user role",
type: "success"