diff --git a/backend/resources/sql/images.sql b/backend/resources/sql/images.sql index 2f2a71051..dbfba492d 100644 --- a/backend/resources/sql/images.sql +++ b/backend/resources/sql/images.sql @@ -16,7 +16,7 @@ select *, (select count(*) from images where collection = ic.id) as num_images from images_collections as ic where (ic."user" = :user or - uc."user" = '00000000-0000-0000-0000-000000000000'::uuid) + ic."user" = '00000000-0000-0000-0000-000000000000'::uuid) and ic.deleted_at is null order by ic.created_at desc;