mirror of
https://github.com/penpot/penpot.git
synced 2025-01-27 00:49:28 -05:00
🐛 Fix incorrect thumbnail queries on file related rpc methods
This commit is contained in:
parent
c7ed642f6a
commit
8919a7067e
1 changed files with 6 additions and 2 deletions
|
@ -357,7 +357,9 @@
|
||||||
f.is_shared,
|
f.is_shared,
|
||||||
ft.media_id
|
ft.media_id
|
||||||
from file as f
|
from file as f
|
||||||
left join file_thumbnail as ft on (ft.file_id = f.id and ft.revn = f.revn)
|
left join file_thumbnail as ft on (ft.file_id = f.id
|
||||||
|
and ft.revn = f.revn
|
||||||
|
and ft.deleted_at is null)
|
||||||
where f.project_id = ?
|
where f.project_id = ?
|
||||||
and f.deleted_at is null
|
and f.deleted_at is null
|
||||||
order by f.modified_at desc")
|
order by f.modified_at desc")
|
||||||
|
@ -660,7 +662,9 @@
|
||||||
row_number() over w as row_num
|
row_number() over w as row_num
|
||||||
from file as f
|
from file as f
|
||||||
inner join project as p on (p.id = f.project_id)
|
inner join project as p on (p.id = f.project_id)
|
||||||
left join file_thumbnail as ft on (ft.file_id = f.id and ft.revn = f.revn)
|
left join file_thumbnail as ft on (ft.file_id = f.id
|
||||||
|
and ft.revn = f.revn
|
||||||
|
and ft.deleted_at is null)
|
||||||
where p.team_id = ?
|
where p.team_id = ?
|
||||||
and p.deleted_at is null
|
and p.deleted_at is null
|
||||||
and f.deleted_at is null
|
and f.deleted_at is null
|
||||||
|
|
Loading…
Add table
Reference in a new issue