fix: correct contact entry display
This commit is contained in:
parent
6d6018aa32
commit
7e2f5d0a18
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ mod get {
|
||||||
let entries: Vec<JournalEntry> = sqlx::query_as(
|
let entries: Vec<JournalEntry> = sqlx::query_as(
|
||||||
"select distinct j.id, j.value, j.date from journal_entries j
|
"select distinct j.id, j.value, j.date from journal_entries j
|
||||||
join mentions m on j.id = m.entity_id
|
join mentions m on j.id = m.entity_id
|
||||||
where m.entity_type = $1 and (m.url = '/contact/'||$1 or m.url in (
|
where m.entity_type = $1 and (m.url = '/contact/'||$2 or m.url in (
|
||||||
select '/group/'||slug from groups
|
select '/group/'||slug from groups
|
||||||
where contact_id = $2
|
where contact_id = $2
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue