mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Use to_json call in cli/domains (#38219)
This commit is contained in:
parent
1a464bc5ed
commit
8124f1581a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user