From cfc63bb6fd55643ec5134481b975424cd21b4317 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 7 Nov 2026 22:48:46 +0000 Subject: [PATCH] Add hidden fields to printer schema for enhanced data management - 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. --- src/database/schemas/production/printer.schema.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/schemas/production/printer.schema.js b/src/database/schemas/production/printer.schema.js index 750d003..fe5bd4b 100644 --- a/src/database/schemas/production/printer.schema.js +++ b/src/database/schemas/production/printer.schema.js @@ -101,6 +101,8 @@ const rollupConfigs = [ }, ]; +printerSchema.statics.hiddenFields = ['alerts', 'pendingSlicerUploads']; + printerSchema.statics.stats = async function () { const results = await aggregateRollups({ model: this,