commit 71b8b2214dc1a78e6f0f9078811e852d0648c182
parent 4ee433404d08796f7eea94004ff9cb49c98dc43c
Author: srfsh <dev@srf.sh>
Date: Sun, 20 Nov 2022 23:02:23 +0300
Zenflows.VF.EconomicEvent.Domain: add :previous_event to previous/2
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/zenflows/vf/economic_event/domain.ex b/src/zenflows/vf/economic_event/domain.ex
@@ -113,13 +113,14 @@ end
| :provider | :receiver
| :resource_inventoried_as | :to_resource_inventoried_as
| :resource_conforms_to | :resource_quantity | :effort_quantity
- | :to_location | :at_location | :realization_of | :triggered_by)
+ | :to_location | :at_location | :realization_of | :triggered_by
+ | :previous_event)
:: EconomicEvent.t()
def preload(eco_evt, x) when x in ~w[
input_of output_of provider receiver
resource_inventoried_as to_resource_inventoried_as
resource_conforms_to to_location at_location realization_of
- triggered_by
+ triggered_by previous_event
]a do
Repo.preload(eco_evt, x)
end