feat: enhance security handling by adding refetch capability and improving error messages in security service

This commit is contained in:
Mauricio Siu
2026-02-25 23:30:28 -06:00
parent 0adfa51174
commit 4baf77c740
3 changed files with 33 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ export const securityRouter = createTRPCRouter({
message: "You are not authorized to access this application",
});
}
return await findSecurityById(input.securityId);
return security;
}),
delete: protectedProcedure
.input(apiFindOneSecurity)