Skip to main content

fix-forge-created-date

🐛 Bug Fixes

Forge: select new documents by createdDate (neo / agent deposits)

Goal: Neo-backend, scripts, and Tower v2 write createdDate only. Forge fetch-new-docs filtered on legacy Mongoose created, so those documents were never picked for anchoring (0/0 confirmed in admin).

Solution: Match and project createdDate in the protect pipeline. No DB migration needed — legacy manual deposits already have createdDate.

Features:

  • fetch-new-docs uses createdDate instead of created
  • Unit tests on the aggregation pipeline

Files Modified:

  • src/database/requests/fetch-new-docs.ts
  • src/database/requests/fetch-new-docs.spec.ts

🔒 Security

Dependency upgrades for clean snyk test (CI gate)

Goal: CI runs snyk test on the full lockfile; all reported issues must be resolved, not dismissed as preexisting.

Solution: Bump OpenTelemetry (sdk-node@0.220, exporter-trace-otlp-proto@0.219, resources@2), migrate main.ts to resourceFromAttributes, and add overrides / direct upgrades for @grpc/grpc-js, protobufjs, multer, body-parser, form-data, brace-expansion, ws. NestJS 11.1.28, ethers@6.17, joi@17.13.4.

Files Modified:

  • package.json / package-lock.json
  • src/main.ts