Skip to content

Commit

Permalink
my bad - i'm not parsing it, so yeah it's a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Jun 15, 2024
1 parent d7e3ff2 commit d7c50c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/controllers/reftracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class ArchivesSpaceService < Sinatra::Base
.returns([200, "codetable"], [404, 'not found']) \
do
begin
# FIXME: came back as a quoted string of json, might need to parse it
json_response(RefTrackerClient.get_codetable(params[:table]))
RefTrackerClient.get_codetable(params[:table])
rescue RecordNotFound => e
json_response({:error => e.message}, 404)
end
Expand Down

0 comments on commit d7c50c8

Please sign in to comment.