mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-19 07:01:35 +00:00
fix(project-export-import): don't deploy services whose files failed to write
This commit is contained in:
@@ -361,5 +361,13 @@ export const postApply = async (
|
||||
...(await writeFileMounts(db, snapshot, result, emit)),
|
||||
);
|
||||
|
||||
return { deployCandidates, postApplyErrors };
|
||||
const failedServiceIds = new Set(
|
||||
postApplyErrors.map((error) => error.serviceId),
|
||||
);
|
||||
return {
|
||||
deployCandidates: deployCandidates.filter(
|
||||
(candidate) => !failedServiceIds.has(candidate.serviceId),
|
||||
),
|
||||
postApplyErrors,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user