Remove warning when archived projects are skipped from export
Archiving a project is normal, not something to warn about. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1938,12 +1938,6 @@ export function companyPortabilityService(db: Db) {
|
||||
const issuesSvc = issueService(db);
|
||||
const allProjectsRaw = include.projects || include.issues ? await projectsSvc.list(companyId) : [];
|
||||
const allProjects = allProjectsRaw.filter((project) => !project.archivedAt);
|
||||
if (include.projects) {
|
||||
const skippedArchived = allProjectsRaw.length - allProjects.length;
|
||||
if (skippedArchived > 0) {
|
||||
warnings.push(`Skipped ${skippedArchived} archived project${skippedArchived === 1 ? "" : "s"} from export.`);
|
||||
}
|
||||
}
|
||||
const projectById = new Map(allProjects.map((project) => [project.id, project]));
|
||||
const projectByReference = new Map<string, typeof allProjects[number]>();
|
||||
for (const project of allProjects) {
|
||||
|
||||
Reference in New Issue
Block a user