fix: keep startMediaServer runtime arg order

This commit is contained in:
MaxMiksa 2026-01-28 23:18:57 -05:00
parent b1c88dd7d7
commit 524cd283b2
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export async function ensureMediaHosted(
}
if (needsServerStart && opts.startServer) {
if (!mediaServer) {
mediaServer = await startMediaServer(port, TTL_MS, undefined, runtime);
mediaServer = await startMediaServer(port, TTL_MS, runtime);
logInfo(
`🦞 Started temporary media host on http://127.0.0.1:${port}/media/:id (TTL ${TTL_MS / 1000}s)`,
runtime,

View File

@ -83,8 +83,8 @@ export function attachMediaRoutes(
export async function startMediaServer(
port: number,
ttlMs = DEFAULT_TTL_MS,
host = "127.0.0.1",
runtime: RuntimeEnv = defaultRuntime,
host = "127.0.0.1",
): Promise<Server> {
const app = express();
attachMediaRoutes(app, ttlMs, runtime);