Added archive migrations to schema version 2

This commit is contained in:
Stefan Zermatten
2023-06-20 13:30:35 +02:00
parent 3af4528788
commit beb4d94676
8 changed files with 125 additions and 51 deletions

View File

@@ -1,9 +1,9 @@
import applyFnToKey from '../utility/applyFnToKey.js';
import { unset } from 'lodash';
export default function removeSchemaFields(schemas, prop){
export default function removeSchemaFields(schemas, prop) {
schemas.forEach(schema => {
schema.removeBeforeComputeFields().forEach(
schema?.removeBeforeComputeFields?.().forEach(
key => applyFnToKey(prop, key, unset)
);
});