Refactor HACKY_resolvePicture away (#2606)

This commit is contained in:
Kalle
2025-11-08 13:54:02 +02:00
committed by GitHub
parent 62808206c1
commit 9296319d23
73 changed files with 880 additions and 584 deletions

View File

@@ -3,6 +3,7 @@ import fs from "node:fs";
import { seed } from "~/db/seed";
import { db } from "~/db/sql";
import { logger } from "~/utils/logger";
import { seedImages } from "./seed-images";
async function main() {
// Step 1: Create .env if it doesn't exist
@@ -33,6 +34,14 @@ async function main() {
process.exit(1);
}
}
// Step 3: Seed images to Minio
logger.info("🖼️ Seeding images to Minio...");
try {
await seedImages();
} catch (err) {
logger.error("Error seeding images:", (err as Error).message);
}
}
main();