@rubytech/create-maxy-code 0.1.447 → 0.1.448

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.447",
3
+ "version": "0.1.448",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -1536,8 +1536,11 @@ FOR (nt:Note) ON (nt.accountId);
1536
1536
  // stamps the migration provenance once. author is 'unknown' (the scalar carried
1537
1537
  // none) and createdAt is the migration time (the scalar had no timestamp). The
1538
1538
  // scalar is always removed, so the fold does not double-render as node + scalar.
1539
+ // jobId can be legally absent (the uniqueness constraint above does not enforce
1540
+ // presence) — coalesce onto elementId(j) so a jobId-less Job still yields a
1541
+ // non-null MERGE key instead of aborting the whole seed on a null property.
1539
1542
  MATCH (j:Job) WHERE j.notes IS NOT NULL AND trim(j.notes) <> ''
1540
- MERGE (nt:Note { accountId: j.accountId, noteId: 'migrated-job-' + j.jobId })
1543
+ MERGE (nt:Note { accountId: j.accountId, noteId: 'migrated-job-' + coalesce(j.jobId, elementId(j)) })
1541
1544
  ON CREATE SET nt.text = j.notes,
1542
1545
  nt.author = 'unknown',
1543
1546
  nt.createdAt = toString(datetime()),