style: auto-fix lint and format
This commit is contained in:
1 parent
05e7d8c529
commit
cf655b8c8e
4 files changed
+17
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user