Skip to content

Commit 7da6986

Browse files
committed
refactor: update project query to use permissions-aware endpoint
Replaced the existing project query with the new `allForPermissions` endpoint to enhance data retrieval for server monitoring settings. This change aligns with recent API enhancements aimed at improving permissions management.
1 parent 612e73b commit 7da6986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dokploy/components/dashboard/settings/servers/setup-monitoring.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const SetupMonitoring = ({ serverId }: Props) => {
100100

101101
const url = useUrl();
102102

103-
const { data: projects } = api.project.all.useQuery();
103+
const { data: projects } = api.project.allForPermissions.useQuery();
104104

105105
const extractServicesFromProjects = () => {
106106
if (!projects) return [];

0 commit comments

Comments
 (0)