shuttlepro-shared 1.2.79 → 1.2.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,8 +71,8 @@ const findSingleUserRoleByFilter = async ({ workspaceId, userId }) => {
71
71
  return await getMemberByWorkspaceIdAndUserId(workspaceId, userId);
72
72
  };
73
73
 
74
- const findUserRole = async ({ workspaceId, userId }) => {
75
- return await getMemberByWorkspaceIdAndUserId(workspaceId, userId);
74
+ const findAllUserRoles = async (workspaceId) => {
75
+ return await getMembers(workspaceId);
76
76
  };
77
77
 
78
78
  const createUserRole = async (data) => {
@@ -221,7 +221,7 @@ const findUserWorkspaces = async (userId) => {
221
221
  module.exports = {
222
222
  createUserRole,
223
223
  updateUserRole,
224
- findUserRole,
224
+ findAllUserRoles,
225
225
  deleteUserRoleByFilter,
226
226
  findUserWorkspaces,
227
227
  getUserRoleWithPermissions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.2.79",
3
+ "version": "1.2.81",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {