diff --git a/src/components/Dashboard/context/ApiServerContext.jsx b/src/components/Dashboard/context/ApiServerContext.jsx index a201d052..b310cc46 100644 --- a/src/components/Dashboard/context/ApiServerContext.jsx +++ b/src/components/Dashboard/context/ApiServerContext.jsx @@ -2408,8 +2408,8 @@ const ApiServerProvider = ({ children }) => { if (!userProfile?._id) return { data: [] } const result = await fetchObjects('userNotifier', { filter: { - 'user._id': userProfile._id, - 'object._id': objectId, + user: userProfile._id, + object: objectId, objectType }, limit: 1 @@ -2420,7 +2420,7 @@ const ApiServerProvider = ({ children }) => { const fetchAllUserNotifiersForObject = async (objectId, objectType) => { const result = await fetchObjects('userNotifier', { filter: { - 'object._id': objectId, + object: objectId, objectType }, limit: 100