Correctly order rules by id/creation date

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-03-05 21:45:34 +01:00
parent d26aadb743
commit 5c383ada8a

View file

@ -27,6 +27,7 @@ defmodule Pleroma.Rule do
def query do
Rule
|> order_by(asc: :priority)
|> order_by(asc: :id)
end
def get(ids) when is_list(ids) do