Skip to content

Commit

Permalink
fix illiad request for rwc pickup
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Oct 30, 2024
1 parent 70b0d89 commit 21ca895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/patron_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ def origin_library_code

# @deprecated Used by the paging schedule; new code should use pickup_service_point instead
# @return [String] the code of the destination pickup location
# fallback to code because RWC doesn't have an associated library but is still valid pickup location
def destination_library_code
pickup_service_point&.library&.code
pickup_service_point&.library&.code || pickup_service_point&.code
end

# @return [String] the library ID for the destination's pseudopatron
Expand Down

0 comments on commit 21ca895

Please sign in to comment.