mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
fix channel subscriptions
This commit is contained in:
parent
5b49eb0b9d
commit
c0336f0685
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ defmodule Philomena.Channels do
|
||||||
Subscription
|
Subscription
|
||||||
|> where([s], s.channel_id in ^channel_ids and s.user_id == ^user.id)
|
|> where([s], s.channel_id in ^channel_ids and s.user_id == ^user.id)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|> Map.new(&{&1.id, true})
|
|> Map.new(&{&1.channel_id, true})
|
||||||
end
|
end
|
||||||
|
|
||||||
def clear_notification(channel, user) do
|
def clear_notification(channel, user) do
|
||||||
|
|
Loading…
Reference in a new issue