Commit 67447109 authored by lain's avatar lain

Fixes 4: In Da Hood.

parent 42f30d67
Pipeline #821 failed with stage
in 2 minutes and 1 second
......@@ -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) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment