Use to_json call in cli/domains (#38219)
This commit is contained in:
@@ -214,7 +214,7 @@ module Mastodon::CLI
|
|||||||
|
|
||||||
def stats_to_json(stats)
|
def stats_to_json(stats)
|
||||||
stats.compact!
|
stats.compact!
|
||||||
say(Oj.dump(stats))
|
say(stats.to_json)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ RSpec.describe Mastodon::CLI::Domains do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def json_summary
|
def json_summary
|
||||||
Oj.dump('host.example': { activity: {} })
|
JSON.generate('host.example': { activity: {} })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user