fix channel subscriptions

This commit is contained in:
byte[] 2020-12-08 15:09:05 -05:00
parent 5b49eb0b9d
commit c0336f0685

View file

@ -189,7 +189,7 @@ defmodule Philomena.Channels do
Subscription
|> where([s], s.channel_id in ^channel_ids and s.user_id == ^user.id)
|> Repo.all()
|> Map.new(&{&1.id, true})
|> Map.new(&{&1.channel_id, true})
end
def clear_notification(channel, user) do