Fix retry mirror strategy fallback

This commit is contained in:
Arunavo Ray
2026-02-24 08:31:16 +05:30
parent f4d391b240
commit 0a3ad4e7f5

View File

@@ -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