projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42f30d6
)
Fixes 4: In Da Hood.
author
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 09:58:16 +0000
(10:58 +0100)
committer
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 09:58:16 +0000
(10:58 +0100)
lib/mix/tasks/fix_ap_users.ex
patch
|
blob
|
history
diff --git
a/lib/mix/tasks/fix_ap_users.ex
b/lib/mix/tasks/fix_ap_users.ex
index ae34757775cafb88b797c34996145fecedc17d5c..ff09074c30ed8eb92910f63f94b89f630e57336d 100644
(file)
--- a/
lib/mix/tasks/fix_ap_users.ex
+++ b/
lib/mix/tasks/fix_ap_users.ex
@@
-9,7
+9,8
@@
defmodule Mix.Tasks.FixApUsers do
Mix.Task.run("app.start")
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)
Enum.each(users, fn(user) ->