Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion backend/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ as $$
from public.chats c
left join public.projects p on p.id = c.project_id
where c.user_id = p_user_id
or (p.id is not null and p.user_id = p_user_id)
or (
p.id is not null
and p.user_id = p_user_id
)
order by c.created_at desc, c.id asc
limit case
when p_limit is null then null
Expand Down
Loading