fix: minor fixes

This commit is contained in:
Daniel Kempkens 2023-08-14 02:06:10 +02:00
parent 0ff7664489
commit 18260122bb
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ defmodule BdfrBrowser.HTTP.Plug do
|> send_resp(200, media)
end
get "/_import" do
post "/_import" do
:ok = BdfrBrowser.Importer.background_import()
send_resp(conn, 200, "IMPORTING")
end

View file

@ -12,6 +12,6 @@ defmodule BdfrBrowser.Subreddit do
end
def names do
from(s in __MODULE__, select: s.name, order_by: [asc: s.name])
from(s in __MODULE__, select: s.name, order_by: [asc: fragment("lower(?)", s.name)])
end
end