lib/eco/api/usecases/graphql/helpers/location/command/result.rb in eco-helpers-3.0.4 vs lib/eco/api/usecases/graphql/helpers/location/command/result.rb in eco-helpers-3.0.5
- old
+ new
@@ -56,10 +56,11 @@
def command_result
result&.command
end
def command_id
- return nil unless result
+ return unless result
+
command_result["id"]
end
def as_json
{