Skip to content

Commit

Permalink
Merge pull request #2584 from sul-dlss/2575-srwc-rwc
Browse files Browse the repository at this point in the history
fix illiad request for rwc pickup
  • Loading branch information
cbeer authored Oct 31, 2024
2 parents 3247b75 + 21ca895 commit 06841f9
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 06841f9

Please sign in to comment.