feat(certificates): display server information in certificate details

- Added a new section to the certificate details view to show associated server information, including the server name and IP address, enhancing the visibility of server-related data for each certificate.
- Updated the API to include server data when fetching certificates.
This commit is contained in:
Mauricio Siu
2026-04-03 23:09:19 -06:00
parent 91d4fe2420
commit 199589d42e
2 changed files with 10 additions and 0 deletions

View File

@@ -74,6 +74,9 @@ export const certificateRouter = createTRPCRouter({
all: withPermission("certificate", "read").query(async ({ ctx }) => {
return await db.query.certificates.findMany({
where: eq(certificates.organizationId, ctx.session.activeOrganizationId),
with: {
server: true,
},
});
}),
update: withPermission("certificate", "update")