Handle metadata key deletion early exit

In case no keys had to be deleted it always returned an empty object which broke the whole metadata migration and resulted in the final metadata to always fall back to the default values
This commit is contained in:
schroda
2025-01-06 01:58:49 +01:00
parent 9f42b75eee
commit 3d7a4146e4

View File

@@ -140,7 +140,7 @@ const applyMetadataDeleteKeysMigration = (
const migratedMetadata: Metadata = {};
if (!migration.deleteKeys) {
return migratedMetadata;
return { ...meta };
}
const appMetadata = getAppMetadataFrom(meta, undefined, appKeyPrefix);