Commit aabcecb2 authored by kaniini's avatar kaniini
Browse files

notification: formatting

parent 07cdd9ed
Pipeline #9309 passed with stages
in 4 minutes and 21 seconds
......@@ -35,7 +35,12 @@ def for_user_query(user) do
|> where(user_id: ^user.id)
|> join(:inner, [n], activity in assoc(n, :activity))
|> join(:left, [n, a], object in Object,
on: fragment("(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)", object.data, a.data)
on:
fragment(
"(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",
object.data,
a.data
)
)
|> preload([n, a, o], activity: {a, object: o})
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment