Skip to content

Commit

Permalink
Debug nypl-core issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nonword committed Jul 22, 2024
1 parent c791565 commit 6fddf67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/delivery-locations-resolver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { itemHasRecapHoldingLocation, barcodeFromItem } = require('./util')
const scsbClient = require('./scsb-client')
const recapCustomerCodes = require('@nypl/nypl-core-objects')('by-recap-customer-code')
console.log('Using nypl-core version: ', process.env.NYPL_CORE_VERSION ? process.env.NYPL_CORE_VERSION : 'master')
const sierraLocations = require('@nypl/nypl-core-objects')('by-sierra-location')
const logger = require('./logger')
const onsiteEddCriteria = require('../data/onsite-edd-criteria.json')
Expand Down Expand Up @@ -50,6 +51,7 @@ class DeliveryLocationsResolver {

// Fetch Sierra delivery locations by recap code
static deliveryLocationsByRecapCustomerCode (customerCode) {
console.log('deliveryLocationsByRecapCustomerCode: ' + customerCode)
if (recapCustomerCodes[customerCode] && recapCustomerCodes[customerCode].sierraDeliveryLocations) {
return recapCustomerCodes[customerCode].sierraDeliveryLocations
}
Expand Down

0 comments on commit 6fddf67

Please sign in to comment.