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
|
// Backup schedule state
|
||||||
"lastBackupAt", "lastBackupStatus", "lastBackupError", "nextBackupAt",
|
"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 [
|
return [
|
||||||
|
...redundantKeys,
|
||||||
...(includeRuntimeState ? [] : runtimeStateKeys),
|
...(includeRuntimeState ? [] : runtimeStateKeys),
|
||||||
...(includeIds ? [] : idKeys),
|
...(includeIds ? [] : idKeys),
|
||||||
...(includeTimestamps ? [] : timestampKeys),
|
...(includeTimestamps ? [] : timestampKeys),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue