Make opts optional in Pleroma.Notification.for_user_query/2
authorRoman Chvanikov <chvanikoff@pm.me>
Sun, 14 Jul 2019 19:04:55 +0000 (22:04 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Sun, 14 Jul 2019 19:04:55 +0000 (22:04 +0300)
lib/pleroma/notification.ex

index f680fe049654871af27bf68fb87157f7dc7d1df5..04bbfa0df0383b82e2268fdc4a40ec2fda2adb07 100644 (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)