Add optional 'message' field to alert schema: Enhanced the alert schema in printer.schema.js to include a non-required 'message' field for improved alert detail.

This commit is contained in:
Tom Butcher 2025-09-05 23:26:12 +01:00
parent 5cac77a975
commit 97773c2ab2

View File

@ -17,6 +17,7 @@ const alertSchema = new Schema(
{ {
priority: { type: String, required: true }, // order to show priority: { type: String, required: true }, // order to show
type: { type: String, required: true }, // selectFilament, error, info, message, type: { type: String, required: true }, // selectFilament, error, info, message,
message: { type: String, required: false },
}, },
{ timestamps: true, _id: false } { timestamps: true, _id: false }
); );