From 46173a54a58d23694cbcef7a811ada5c7084b3ce Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 27 Jul 2026 02:39:30 +0100 Subject: [PATCH] Update DocumentPrinter model to adjust 'updatedAt' and 'connectedAt' fields - Added a new 'updatedAt' field for tracking the last update timestamp. - Replaced the existing 'updatedAt' field with 'connectedAt' to accurately reflect the connection time. - Ensured both fields are read-only and properly formatted for display in the UI. --- src/database/models/DocumentPrinter.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/database/models/DocumentPrinter.js b/src/database/models/DocumentPrinter.js index 5833e8a..a8725d0 100644 --- a/src/database/models/DocumentPrinter.js +++ b/src/database/models/DocumentPrinter.js @@ -91,6 +91,13 @@ export const DocumentPrinter = { readOnly: true, columnWidth: 180 }, + { + name: 'updatedAt', + label: 'Updated At', + type: 'dateTime', + readOnly: true, + columnWidth: 175 + }, { name: 'name', label: 'Name', @@ -99,13 +106,15 @@ export const DocumentPrinter = { columnWidth: 200, columnFixed: 'left' }, + { - name: 'updatedAt', - label: 'Updated At', + name: 'connectedAt', + label: 'Connected At', type: 'dateTime', readOnly: true, columnWidth: 175 }, + { name: 'state', label: 'Status', @@ -115,13 +124,7 @@ export const DocumentPrinter = { readOnly: true, columnWidth: 260 }, - { - name: 'connectedAt', - label: 'Connected At', - type: 'dateTime', - readOnly: true, - columnWidth: 175 - }, + { name: 'online', label: 'Online',