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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ module Mastodon::CLI
def stats_to_json(stats)
stats.compact!
say(Oj.dump(stats))
say(stats.to_json)
end
end
end

View File

@ -87,7 +87,7 @@ RSpec.describe Mastodon::CLI::Domains do
end
def json_summary
Oj.dump('host.example': { activity: {} })
JSON.generate('host.example': { activity: {} })
end
end
end