lib/portatext/command/api/did_settings.rb in portatext-1.3.0 vs lib/portatext/command/api/did_settings.rb in portatext-1.3.1

- old
+ new

@@ -28,13 +28,13 @@ set :autoresponder_text, text set :autoresponder_enabled, true end def endpoint(_method) - raise 'DID number cant be null' if @args[:id].nil? id = @args[:id] @args.delete :id - "dids/#{id}" + return "dids/#{id}" unless id.nil? + 'dids' end end end end end