From 2dfa15a83a9abb7c43f0ecf6e96c4eb7112fff81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C3=A1vn=C3=ADk?= Date: Tue, 2 Dec 2025 11:47:26 +0100 Subject: [PATCH] remove redundant type key from exported objects --- app/server/modules/lifecycle/config-export.controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/server/modules/lifecycle/config-export.controller.ts b/app/server/modules/lifecycle/config-export.controller.ts index 00c77577..cd8e8c95 100644 --- a/app/server/modules/lifecycle/config-export.controller.ts +++ b/app/server/modules/lifecycle/config-export.controller.ts @@ -55,7 +55,11 @@ function getExcludeKeys(includeIds: boolean, includeTimestamps: boolean, include // Backup schedule state "lastBackupAt", "lastBackupStatus", "lastBackupError", "nextBackupAt", ]; + // Redundant fields that are already present inside the config object + // (e.g., type is duplicated as config.backend or config.type) + const redundantKeys = ["type"]; return [ + ...redundantKeys, ...(includeRuntimeState ? [] : runtimeStateKeys), ...(includeIds ? [] : idKeys), ...(includeTimestamps ? [] : timestampKeys),