fix: resolve TypeScript compilation errors in server.ts and integration.ts
- Fix TS2502 circular type reference in server.ts by importing jobGroup as a type-only alias (CronJobGroup) matching the pattern from apps/tasks/src/job-manager.ts - Fix TS2578 by removing stale @ts-expect-error for immich documentationUrl (URL now exists in homarr-docs-sitemap.ts) - Fix .gitignore: add customServer.css build artifact, fix missing newline - Update pnpm-lock.yaml to include new deps (ws, fastify, esbuild, etc.) Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com> Agent-Logs-Url: https://github.com/homarr-labs/homarr/sessions/eb8fcd66-878f-4a31-a981-1ba1d663c2ca
This commit is contained in:
1 parent
a613a7a473
commit
8ad05560ad
3 files changed
+6
-4
No files matched your search
@@ -36,13 +36,13 @@ const logger = createLogger({ module: "customServer" });
|
||||
|
||||
// --- JobManager (from apps/tasks/src/job-manager.ts) ---
|
||||
import type { IJobManager } from "@homarr/cron-job-api";
|
||||
import type { JobGroupKeys } from "@homarr/cron-jobs";
|
||||
import type { jobGroup as CronJobGroup, JobGroupKeys } from "@homarr/cron-jobs";
|
||||
import type { Database, InferInsertModel } from "@homarr/db";
|
||||
|
||||
class JobManager implements IJobManager {
|
||||
constructor(
|
||||
private db: Database,
|
||||
private jobGroup: typeof jobGroup,
|
||||
private jobGroup: typeof CronJobGroup,
|
||||
) {}
|
||||
|
||||
public async startAsync(name: JobGroupKeys): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user