[object Object]

← back to Dw Photo Capture

doc: cross-reference the shared Date WP Sample Sent writer (mark-received + print-sticker both close the open-sample request via this field) — surfaced by contrarian gate during /5x

d4db33e1d330506ebb1c911821209d78830d6bea · 2026-07-08 12:20:29 -0700 · Steve Abrams

Files touched

Diff

commit d4db33e1d330506ebb1c911821209d78830d6bea
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jul 8 12:20:29 2026 -0700

    doc: cross-reference the shared Date WP Sample Sent writer (mark-received + print-sticker both close the open-sample request via this field) — surfaced by contrarian gate during /5x
---
 server.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server.js b/server.js
index fcf0235..571516b 100644
--- a/server.js
+++ b/server.js
@@ -1394,6 +1394,10 @@ const appHandler = (req, res) => {
   // workflow this field IS the received-stamp — an empty value means "still coming in" (exactly what the
   // incoming query filters on), so stamping it records the arrival date AND drops the record out of the
   // incoming queue automatically.
+  // NOTE (shared writer): `/api/print-sticker` below ALSO stamps this same `Date WP Sample Sent` field
+  // (its "sample sent to client" step). Both flows intentionally CLOSE the open-sample request by filling
+  // this one field, so they can't be distinguished afterward (received-in vs sent-out). That's by-design
+  // per Steve's model; if the two ever need separate audit trails, add a distinct receive-date field.
   if (u.pathname === '/api/mark-received' && req.method === 'POST') {
     if (!FM_ENABLED()) return send(res, 200, { ok: false, err: 'FileMaker not configured' });
     let body = ''; req.on('data', c => { body += c; if (body.length > 64 * 1024) req.destroy(); });

← b56afa1 auto-save: 2026-07-08T11:35:28 (1 files) — package-lock.json  ·  back to Dw Photo Capture  ·  Scan → show WALLPAPER FileMaker details: new /api/wallpaper- c3d8429 →