Fix collective insights query

This commit is contained in:
eikek
2022-08-07 15:12:48 +02:00
parent 7424a9b2f9
commit e9e3e607d3

View File

@ -97,7 +97,7 @@ object QCollective {
(select a.attachid as aid, a.filemetaid as fid (select a.attachid as aid, a.filemetaid as fid
from attachment a from attachment a
inner join item i on a.itemid = i.itemid inner join item i on a.itemid = i.itemid
where i.cid = $coll) where i.coll_id = $coll)
select a.fid,m.length from attachs a select a.fid,m.length from attachs a
inner join filemeta m on m.file_id = a.fid inner join filemeta m on m.file_id = a.fid
union distinct union distinct