From 1cf415f9f862a535def8663608e4d74c5cb28313 Mon Sep 17 00:00:00 2001 From: Elias Arruda Date: Fri, 24 Jan 2025 15:41:43 -0300 Subject: [PATCH] fix persistence --- lib/actors/actor/entity/invocation.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/actors/actor/entity/invocation.ex b/lib/actors/actor/entity/invocation.ex index da0d5485..896d6401 100644 --- a/lib/actors/actor/entity/invocation.ex +++ b/lib/actors/actor/entity/invocation.ex @@ -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 @@ -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,