GenerateUnsetUserKeys: only select necessary user fields

This commit is contained in:
Alex Gleason 2022-09-28 17:58:25 -05:00
parent 9137089895
commit f6afe649fe
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -14,7 +14,7 @@ def change do
from(u in User,
where: u.local == true,
where: is_nil(u.keys),
select: u
select: struct(u, [:id, :keys])
)
Repo.stream(query)