Skip to main content
Version: 1.7.0

Documents: Proxy created from createdDate

Version: 1.7.0 Date: 2026-07-15

Goal: Documents inserted via neo-backend only have createdDate. Legacy API consumers still expect created in JSON responses.

Solution: In document schema transforms and list routes, expose created as createdDate when created is absent.

Features:

  • IP Magic Box and admin list views show consistent timestamps for neo-deposited documents
  • No database migration required

Implementation Details:

  • toObject / toJSON hooks on document schema
  • Explicit fallback in documents.js list mapping

Files Modified:

  • app/database/schema/document.js - Serialization proxy
  • app/routes/documents.js - List response fallback