style: auto-fix lint and format

This commit is contained in:
ajnart authored and github-actions[bot] committed 2026-07-11 17:12:44 +00:00
1 parent 9301e224ec
commit 87f1f329da
2 files changed
+9 -9

No files matched your search

@@ -167,14 +167,12 @@ const groundMessagesAsync = async (
}; };
export const openWebUiRouter = createTRPCRouter({ export const openWebUiRouter = createTRPCRouter({
getModels: publicProcedure getModels: publicProcedure.concat(createOneIntegrationMiddleware("query", "openWebUi")).query(async ({ ctx }) => {
.concat(createOneIntegrationMiddleware("query", "openWebUi")) throwIfNotCreator(ctx.integration, ctx.session?.user.id);
.query(async ({ ctx }) => { const handler = openWebUiModelsRequestHandler.handler(ctx.integration, {});
throwIfNotCreator(ctx.integration, ctx.session?.user.id); const { data } = await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false });
const handler = openWebUiModelsRequestHandler.handler(ctx.integration, {}); return data;
const { data } = await handler.getCachedOrUpdatedDataAsync({ forceUpdate: false }); }),
return data;
}),
// Chat history exposes private user data, so we require "interact" access // Chat history exposes private user data, so we require "interact" access
// (not just "query") and verify the caller is the integration's creator. // (not just "query") and verify the caller is the integration's creator.
@@ -48,7 +48,9 @@ export const useHomeEmptyGroups = () => {
refetchOnWindowFocus: false, refetchOnWindowFocus: false,
staleTime: 5 * 60 * 1000, 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); visibleSearchModes.push(askAiMode);
} }