TidyLinker.com
TypeScript
Pull Request Opened
PR #138 opened: fix: normalise special_notes to handle legacy string data
JobPosting.special_notes was cast to array, but CreateDirectBooking stored a free-text string under that column. The cast happily JSON- encoded the string, so on read it came back as a string and broke ClientJobData/CleanerJobData (Argument #25 must be of type ?array).
- Replace the array cast with an Attribute that coerces strings into the canonical {pets, access_instructions, parking} shape on both read and write, fixing existing rows in production.
- Wrap the direct-booking note into the same structured shape at the source so future rows are stored correctly.
+109
additions
-1
deletions
3
files changed