mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 10:59:17 +00:00
fix multi-after-transaction
This commit is contained in:
parent
dbdf0c005e
commit
71126fea0c
|
@ -536,7 +536,6 @@ defp add_notifications(meta, notifications) do
|
||||||
|> Keyword.put(:notifications, notifications ++ existing)
|
|> Keyword.put(:notifications, notifications ++ existing)
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_after_transaction(%{data: %{"type" => "Create"}} = activity) do
|
def handle_after_transaction(%{data: %{"type" => "Create"}} = activity) do
|
||||||
Elasticsearch.put_by_id(activity.id)
|
Elasticsearch.put_by_id(activity.id)
|
||||||
|
@ -547,6 +546,4 @@ def handle_after_transaction(meta) do
|
||||||
|> send_notifications()
|
|> send_notifications()
|
||||||
|> send_streamables()
|
|> send_streamables()
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_after_transaction(_), do: :ok
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue