update :update_avatar do
require_atomic? false
accept []
argument :avatar, Ash.Type.File, allow_nil?: true
argument :filename, :string, allow_nil?: true
change &handle_avatar/2 # actually saves the file and stores path to DB
end
update :update_avatar do
require_atomic? false
accept []
argument :avatar, Ash.Type.File, allow_nil?: true
argument :filename, :string, allow_nil?: true
change &handle_avatar/2 # actually saves the file and stores path to DB
end