Files
DiceCloud/app/imports/api/engine/computation/buildComputation/removeSchemaFields.js
Stefan Zermatten cb1fd38df3 Optimized some slow parts of the engine.
Last low hanging fruit: parsing is slow, cache parsed calculations
2021-09-29 15:54:14 +02:00

11 lines
284 B
JavaScript

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