Use to_json call in cli/domains (#38219)

This commit is contained in:
Matt Jankowski
2026-03-16 10:03:20 -04:00
committed by GitHub
parent 1a464bc5ed
commit 8124f1581a
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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