remove redundant type key from exported objects
This commit is contained in:
parent
13883f3053
commit
2dfa15a83a
1 changed files with 4 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue