diff --git a/CLAUDE.md b/CLAUDE.md index 11302e3..6322937 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,6 +4,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co DONT HALLUCIATE THINGS. IF YOU DONT KNOW LOOK AT THE CODE OR ASK FOR DOCS +NEVER MENTION CLAUDE CODE ANYWHERE. + ## Project Overview Gitea Mirror is a web application that automatically mirrors repositories from GitHub to self-hosted Gitea instances. It uses Astro for SSR, React for UI, SQLite for data storage, and Bun as the JavaScript runtime. diff --git a/src/lib/scheduler-service.ts b/src/lib/scheduler-service.ts index 95664ff..53ca6fa 100644 --- a/src/lib/scheduler-service.ts +++ b/src/lib/scheduler-service.ts @@ -18,7 +18,7 @@ let isSchedulerRunning = false; /** * Parse schedule interval with enhanced support for duration strings, cron, and numbers - * Supports formats like: "8h", "30m", "24h", "0 */2 * * *", or plain numbers (seconds) + * Supports formats like: "8h", "30m", "24h", "0 0/2 * * *", or plain numbers (seconds) */ function parseScheduleInterval(interval: string | number): number { try { diff --git a/src/pages/api/cleanup/trigger.ts b/src/pages/api/cleanup/trigger.ts index 57d830d..630f274 100644 --- a/src/pages/api/cleanup/trigger.ts +++ b/src/pages/api/cleanup/trigger.ts @@ -1,6 +1,6 @@ import type { APIRoute } from 'astro'; import { auth } from '@/lib/auth'; -import { createSecureErrorResponse } from '@/lib/utils/error-handler'; +import { createSecureErrorResponse } from '@/lib/utils'; import { triggerRepositoryCleanup } from '@/lib/repository-cleanup-service'; /**