fix: Prevent deactivated users from receiving socket events when possible

This commit is contained in:
Maksim Eltyshev
2026-01-23 19:38:58 +01:00
parent 6ec0bafecb
commit 267fce0505
6 changed files with 8 additions and 4 deletions
@@ -60,8 +60,9 @@ const getByIds = (ids, { withDeactivated = true } = {}) => {
return defaultFind(criteria);
};
const getAll = ({ roleOrRoles } = {}) =>
const getAll = ({ roleOrRoles, isDeactivated } = {}) =>
defaultFind({
isDeactivated,
role: roleOrRoles,
});