Add hidden fields to printer schema for enhanced data management
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
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:
parent
72c24ab700
commit
cfc63bb6fd
@ -101,6 +101,8 @@ const rollupConfigs = [
|
||||
},
|
||||
];
|
||||
|
||||
printerSchema.statics.hiddenFields = ['alerts', 'pendingSlicerUploads'];
|
||||
|
||||
printerSchema.statics.stats = async function () {
|
||||
const results = await aggregateRollups({
|
||||
model: this,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user