diff --git a/src/pages/api/job/retry-repo.ts b/src/pages/api/job/retry-repo.ts index f6e698d..443eb31 100644 --- a/src/pages/api/job/retry-repo.ts +++ b/src/pages/api/job/retry-repo.ts @@ -145,7 +145,7 @@ export const POST: APIRoute = async ({ request }) => { // For single-org strategy, or when mirroring to an org, // use the org mirroring function to ensure proper organization handling const mirrorStrategy = config.githubConfig?.mirrorStrategy || - (config.githubConfig?.preserveOrgStructure ? "preserve" : "flat-user"); + (config.giteaConfig?.preserveOrgStructure ? "preserve" : "flat-user"); const shouldUseOrgMirror = owner !== config.giteaConfig?.defaultOwner || // Different owner means org