style: auto-fix lint and format

This commit is contained in:
ajnart authored and github-actions[bot] committed 2026-07-01 20:32:06 +00:00
1 parent 05e7d8c529
commit cf655b8c8e
4 files changed
+17 -5

No files matched your search

@@ -159,7 +159,7 @@ export const InitIntegrations = () => {
const imageApps = selectedApps.filter((app) => app.source !== "label");
if (labelApps.length > 0) {
const labelAppsWithHost = labelApps.filter((app): app is (typeof app & { host: string }) => Boolean(app.host));
const labelAppsWithHost = labelApps.filter((app): app is typeof app & { host: string } => Boolean(app.host));
if (labelAppsWithHost.length > 0) {
await syncLabelApps(
labelAppsWithHost.map((app) => ({
@@ -371,7 +371,9 @@ export const onboardRouter = createTRPCRouter({
if (input.length === 0) return;
const existingApps = await ctx.db.query.apps.findMany({ columns: { href: true } });
const existingHrefs = new Set(existingApps.map((app) => app.href).filter((href): href is string => Boolean(href)));
const existingHrefs = new Set(
existingApps.map((app) => app.href).filter((href): href is string => Boolean(href)),
);
const appsToCreate = input.filter((app) => !app.href || !existingHrefs.has(app.href));
if (appsToCreate.length === 0) return;
@@ -4,7 +4,10 @@ import { describe, expect, test } from "vitest";
import { dockerLabels, homepageLabels } from "../../labels";
import { parseContainerLabels } from "../parse-container-labels";
const createContainer = (labels: Record<string, string>, id = "container-abc123"): Pick<ContainerInfo, "Id" | "Labels"> => ({
const createContainer = (
labels: Record<string, string>,
id = "container-abc123",
): Pick<ContainerInfo, "Id" | "Labels"> => ({
Id: id,
Labels: labels,
});
@@ -218,7 +218,10 @@ export const syncDiscoveredServicesAsync = async (
await handleTransactionsAsync(db, {
async handleAsync(innerDb) {
for (const { id, values } of appsToUpdate) {
await innerDb.update(apps as never).set(values).where(eq(apps.id, id));
await innerDb
.update(apps as never)
.set(values)
.where(eq(apps.id, id));
}
await insertCollection.insertAllAsync(innerDb);
const table = dockerAppSources as never;
@@ -238,7 +241,11 @@ export const syncDiscoveredServicesAsync = async (
},
handleSync(innerDb) {
for (const { id, values } of appsToUpdate) {
innerDb.update(apps as never).set(values).where(eq(apps.id, id)).run();
innerDb
.update(apps as never)
.set(values)
.where(eq(apps.id, id))
.run();
}
insertCollection.insertAll(innerDb);
for (const source of sourcesToUpsert) {