return the action in the resolve function