Activity: all_by_object_ap_id_q/1 → create_by_object_ap_id/1
This commit is contained in:
parent
75e4c8f0b2
commit
4ad5a0abb9
|
@ -36,10 +36,7 @@ def get_by_ap_id(ap_id) do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO:
|
def create_by_object_ap_id(ap_id) do
|
||||||
# Go through these and fix them everywhere.
|
|
||||||
# Wrong name, only returns create activities
|
|
||||||
def all_by_object_ap_id_q(ap_id) do
|
|
||||||
from(
|
from(
|
||||||
activity in Activity,
|
activity in Activity,
|
||||||
where:
|
where:
|
||||||
|
@ -67,7 +64,7 @@ def by_object_ap_id(ap_id) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_all_by_object_ap_id(ap_id) do
|
def get_all_by_object_ap_id(ap_id) do
|
||||||
Repo.all(all_by_object_ap_id_q(ap_id))
|
Repo.all(create_by_object_ap_id(ap_id))
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_activity_by_object_id_query(ap_ids) do
|
def create_activity_by_object_id_query(ap_ids) do
|
||||||
|
|
Loading…
Reference in New Issue