0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

🐛 Fix srepl report query

This commit is contained in:
Andrey Antukh 2024-02-22 10:45:54 +01:00
parent dbcfb2746f
commit b05421755f

View file

@ -143,10 +143,10 @@
(def ^:private sql:get-files-by-report
"WITH files AS (
SELECT t.id t.features, mr.name
SELECT f.id, f.features, mr.label
FROM migration_file_report AS mr
JOIN file AS t ON (t.id = mr.file_id)
WHERE t.deleted_at IS NULL
JOIN file AS f ON (f.id = mr.file_id)
WHERE f.deleted_at IS NULL
AND mr.error IS NOT NULL
ORDER BY mr.created_at
) SELECT id, features FROM files %(pred)s")