0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Migration to solve a problem with mime types

This commit is contained in:
alonso.torres 2021-07-05 18:14:11 +02:00
parent 6e40e4e994
commit f312c122ca
2 changed files with 11 additions and 3 deletions

View file

@ -0,0 +1,8 @@
-- Fix problem with content-type inconherence
UPDATE storage_object so
SET metadata = jsonb_set(metadata, '{~:content-type}', to_jsonb(fmo.mtype))
FROM file_media_object fmo
WHERE so.id = fmo.media_id and
so.metadata->>'~:content-type' != fmo.mtype;

View file

@ -236,13 +236,13 @@
[:li {:on-click on-add-shared}
[:span (tr "dashboard.add-shared")]])
[:li.export-file {:on-click on-export-files}
[:span (tr "dashboard.export-single")]]
(when cfg/feedback-enabled
[:li.feedback {:on-click (st/emitf (rt/nav :settings-feedback))}
[:span (tr "labels.give-feedback")]
[:span.primary-badge "ALPHA"]])
[:li.export-file {:on-click on-export-files}
[:span (tr "dashboard.export-single")]]
]]]))
;; --- Header Component