📎 Assert the materialised payload as a main file_data row

This commit is contained in:
Álvaro Tejero Cantero 2026-08-14 01:01:43 +02:00
parent 04c60331b6
commit 0027f49347
No known key found for this signature in database

View File

@ -971,8 +971,9 @@
(t/is (false? (:is-branch row))))
;; the payload lands where the ordinary write path puts it, which
;; is a `file_data` row rather than the legacy `file.data` column
(t/is (some? (th/db-get :file-data {:file-id branch-file-id :type "data"})))
;; is the `file_data` row of type "main" rather than the legacy
;; `file.data` column
(t/is (some? (th/db-get :file-data {:file-id branch-file-id :type "main"})))
(t/is (empty? (th/db-query :file-branch-change {:branch-id branch-id})))