misc: add org scoping to mutation

This commit is contained in:
Sheen Capadngan
2024-07-01 20:22:59 +08:00
parent c976a5ccba
commit 46abda9041
+2 -2
View File
@@ -107,8 +107,8 @@ export const useUpdateUserProjectFavorites = () => {
return {}; return {};
}, },
onSuccess: () => { onSuccess: (_, { orgId }) => {
queryClient.invalidateQueries(userKeys.userProjectFavorites); queryClient.invalidateQueries(userKeys.userProjectFavorites(orgId));
} }
}); });
}; };