Add hidden fields to printer schema for enhanced data management
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good

- Introduced a `hiddenFields` static property in the `printerSchema` to specify fields that should be excluded from certain operations, improving data handling and privacy.
- Updated schema structure to support better management of sensitive information.
This commit is contained in:
Tom Butcher 2026-11-07 22:48:46 +00:00
parent 72c24ab700
commit cfc63bb6fd

View File

@ -101,6 +101,8 @@ const rollupConfigs = [
}, },
]; ];
printerSchema.statics.hiddenFields = ['alerts', 'pendingSlicerUploads'];
printerSchema.statics.stats = async function () { printerSchema.statics.stats = async function () {
const results = await aggregateRollups({ const results = await aggregateRollups({
model: this, model: this,