mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
Fixes 4: In Da Hood.
This commit is contained in:
parent
42f30d67fa
commit
6744710908
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ defmodule Mix.Tasks.FixApUsers do
|
||||||
Mix.Task.run("app.start")
|
Mix.Task.run("app.start")
|
||||||
|
|
||||||
q = from u in User,
|
q = from u in User,
|
||||||
where: fragment("? @> ?", u.info, ^%{"ap_enabled" => true})
|
where: fragment("? @> ?", u.info, ^%{"ap_enabled" => true}),
|
||||||
|
where: u.local == false
|
||||||
users = Repo.all(q)
|
users = Repo.all(q)
|
||||||
|
|
||||||
Enum.each(users, fn(user) ->
|
Enum.each(users, fn(user) ->
|
||||||
|
|
Loading…
Reference in a new issue