refactor(user): remove getTrustedOrigins query from user router

- Eliminated the getTrustedOrigins query from the user router to streamline the API and improve code maintainability.
This commit is contained in:
Mauricio Siu
2026-02-18 01:38:04 -06:00
parent be35709cea
commit 4e8d37bff7
-8
View File
@@ -118,14 +118,6 @@ export const userRouter = createTRPCRouter({
return memberResult;
}),
getTrustedOrigins: protectedProcedure.query(async ({ ctx }) => {
const memberResult = await db.query.member.findFirst({
where: and(
eq(member.organizationId, ctx.session?.activeOrganizationId || ""),
),
});
return memberResult?.user?.trustedOrigins ?? [];
}),
haveRootAccess: protectedProcedure.query(async ({ ctx }) => {
if (!IS_CLOUD) {
return false;