0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

🐛 Fix unexpected responste truncation related to shared links

that contains old data that is not used but can be still present
on the table; we should consider right now to proceed to delete
the row completly
This commit is contained in:
Andrey Antukh 2023-03-31 12:37:31 +02:00 committed by Alonso Torres
parent 0c89b7cdb1
commit 9fe49b5546

View file

@ -31,7 +31,14 @@
links (->> (db/query conn :share-link {:file-id file-id})
(mapv (fn [row]
(update row :pages db/decode-pgarray #{}))))
(-> row
(update :pages db/decode-pgarray #{})
;; NOTE: the flags are deprecated but are still present
;; on the table on old rows. The flags are pgarray and
;; for avoid decoding it (because they are no longer used
;; on frontend) we just dissoc the column attribute from
;; row.
(dissoc :flags)))))
fonts (db/query conn :team-font-variant
{:team-id (:team-id project)