lib/eco/api/usecases/graphql/samples/location/command/service/tree_update.rb in eco-helpers-3.0.10 vs lib/eco/api/usecases/graphql/samples/location/command/service/tree_update.rb in eco-helpers-3.0.11
- old
+ new
@@ -89,10 +89,13 @@
return if options.dig(:workflow, :no_email)
digest_msgs = logger.cache.logs(level: %i[info error warn])
str_exception = exception ? " - Exception!" : ''
subject = "#{config.active_enviro} - #{title}#{str_exception}"
- session.mail(subject: subject, body: digest_msgs.join)
+
+ session.mail(subject: subject, body: digest_msgs.join).tap do
+ options.deep_merge!({worfklow: {no_email: true}})
+ end
end
def print_diff_details?
false
end