chore: always delete nested secrets from main payload

This commit is contained in:
Randall Morey committed 2022-01-21 15:24:38 -05:00
1 parent cd02f6aec3
commit 44ea5e329b
1 file changed
+5 -3
+5 -3
View File
@@ -57,9 +57,11 @@ export default class ApplicationSerializer extends RESTSerializer {
delete json[key];
}
// Push nested secrets down into the secrets key
if (options.isNestedSecret && json[key]) {
if (!json.secrets) json.secrets = {};
json.secrets[key] = json[key];
if (options.isNestedSecret) {
if (json[key]) {
if (!json.secrets) json.secrets = {};
json.secrets[key] = json[key];
}
delete json[key];
}
return value;