Skip to content

Commit

Permalink
fix persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdarruda committed Jan 24, 2025
1 parent 4996299 commit 1cf415f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/actors/actor/entity/invocation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ defmodule Actors.Actor.Entity.Invocation do

defp do_handle_projection(
id,
action,
request,
_settings,
%EntityState{actor: %Actor{settings: %ActorSettings{kind: :PROJECTION}}} = state,
response
) do
if :persistent_term.get("view-#{id.name}-#{action}", false) do
if :persistent_term.get("view-#{id.name}-#{request.action_name}", false) do
# no need to persist any state since this is a view only action
:ok
else
Expand All @@ -659,7 +659,7 @@ defmodule Actors.Actor.Entity.Invocation do
end
end

defp do_handle_projection(_id, _action, _settings, _state, _response), do: :ok
defp do_handle_projection(_id, _request, _settings, _state, _response), do: :ok

defp do_run_workflow(
_request,
Expand Down

0 comments on commit 1cf415f

Please sign in to comment.