1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-be.git synced 2025-03-23 19:27:48 +01:00

Make opts optional in Pleroma.Notification.for_user_query/2

This commit is contained in:
Roman Chvanikov 2019-07-14 22:04:55 +03:00
parent c729883936
commit 168dc97c37

View file

@ -33,7 +33,7 @@ defmodule Pleroma.Notification do
|> cast(attrs, [:seen])
end
def for_user_query(user, opts) do
def for_user_query(user, opts \\ []) do
query =
Notification
|> where(user_id: ^user.id)