mirror of
https://github.com/penpot/penpot.git
synced 2026-10-31 23:10:31 +00:00
📎 Assert the materialised payload as a main file_data row
This commit is contained in:
parent
04c60331b6
commit
0027f49347
@ -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})))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user