shuttlepro-shared 1.2.72 → 1.2.73
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.
|
@@ -246,10 +246,7 @@ const updateUserRole = async (id, data) => {
|
|
|
246
246
|
const deleteUserRoleByFilter = async (filter) => {
|
|
247
247
|
const deletedRole = await UserRole.findOneAndDelete(filter).exec();
|
|
248
248
|
if (deletedRole) {
|
|
249
|
-
await updateAllRelatedCaches(
|
|
250
|
-
roleToDelete?.userId,
|
|
251
|
-
roleToDelete?.workspaceId
|
|
252
|
-
);
|
|
249
|
+
await updateAllRelatedCaches(filter?.userId, filter?.workspaceId);
|
|
253
250
|
}
|
|
254
251
|
return deletedRole;
|
|
255
252
|
};
|