filter by user type

This commit is contained in:
sadposter 2021-12-14 14:16:21 +00:00
parent 8f78cb3050
commit 94c22baaa3

View file

@ -98,6 +98,7 @@ def bulk_post(data, :activities) do
def bulk_post(data, :users) do
d =
data
|> Enum.filter(fn x -> x.actor_type == "Person" end)
|> Enum.map(fn d ->
[
%{index: %{_id: DocumentMappings.User.id(d)}},