Skip to content

Commit

Permalink
Fix happy path
Browse files Browse the repository at this point in the history
  • Loading branch information
n8ta committed Dec 3, 2023
1 parent 869b10a commit 03bf3d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/mofs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def homepage
# GET /mofs
# GET /mofs.json
def index
puts "Getting mofs"
success, @mofs = get_mofs
puts "Success is #{success}"
unless success
return render status: 400, :json => @mofs
end
Expand Down Expand Up @@ -283,7 +285,7 @@ def get_mofs
.where("isotherms.doi_id = ?", doi.id).distinct
end

mofs
return true, mofs
end

def set_mof
Expand Down

0 comments on commit 03bf3d0

Please sign in to comment.