From 87f1f329da6e42c0dbe77acec5278f577448930c Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Sat, 11 Jul 2026 17:12:44 +0000 Subject: [PATCH] style: auto-fix lint and format --- packages/api/src/router/widgets/open-webui.ts | 14 ++++++-------- .../spotlight/src/modes/help/home-empty-groups.tsx | 4 +++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/api/src/router/widgets/open-webui.ts b/packages/api/src/router/widgets/open-webui.ts index eb0c53312..b7b605264 100644 --- a/packages/api/src/router/widgets/open-webui.ts +++ b/packages/api/src/router/widgets/open-webui.ts @@ -167,14 +167,12 @@ const groundMessagesAsync = async ( }; export const openWebUiRouter = createTRPCRouter({ - getModels: publicProcedure - .concat(createOneIntegrationMiddleware("query", "openWebUi")) - .query(async ({ ctx }) => { - throwIfNotCreator(ctx.integration, ctx.session?.user.id); - const handler = openWebUiModelsRequestHandler.handler(ctx.integration, {}); - const { data } = await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false }); - return data; - }), + getModels: publicProcedure.concat(createOneIntegrationMiddleware("query", "openWebUi")).query(async ({ ctx }) => { + throwIfNotCreator(ctx.integration, ctx.session?.user.id); + const handler = openWebUiModelsRequestHandler.handler(ctx.integration, {}); + const { data } = await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false }); + return data; + }), // Chat history exposes private user data, so we require "interact" access // (not just "query") and verify the caller is the integration's creator. diff --git a/packages/spotlight/src/modes/help/home-empty-groups.tsx b/packages/spotlight/src/modes/help/home-empty-groups.tsx index 6a6ae3a8a..cbdf31d99 100644 --- a/packages/spotlight/src/modes/help/home-empty-groups.tsx +++ b/packages/spotlight/src/modes/help/home-empty-groups.tsx @@ -48,7 +48,9 @@ export const useHomeEmptyGroups = () => { refetchOnWindowFocus: false, staleTime: 5 * 60 * 1000, }); - if (integrations.some((integration) => integration.kind === "openWebUi" && integration.creatorId === session?.user?.id)) { + if ( + integrations.some((integration) => integration.kind === "openWebUi" && integration.creatorId === session?.user?.id) + ) { visibleSearchModes.push(askAiMode); }