0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 07:16:07 -05:00

Don't autoselect deleted page on the first projects query (backend).

This commit is contained in:
Andrey Antukh 2017-01-30 17:43:26 +01:00
parent b0de23b011
commit a8b7f79194
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -41,7 +41,7 @@ select distinct
inner join project_shares as ps
on (ps.project = pr.id)
left join pages as pg
on (pg.project = pr.id)
on (pg.project = pr.id and pg.deleted_at is null)
where pr.deleted_at is null
and pr."user" = :user
window win as (partition by pr.id