Skip to content

Commit

Permalink
yikes
Browse files Browse the repository at this point in the history
  • Loading branch information
freshlogic committed Jul 5, 2019
1 parent 460f567 commit 9190c5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions carriers/pitneyBowes.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function PitneyBowes(options) {
description: scanDetail.scanDescription
};

if (DELIVERED_TRACKING_STATUS_CODES.includes(scanDetail.scanType)) {
if (DELIVERED_TRACKING_STATUS_CODES.includes(scanDetail.scanType.toString())) {
results.deliveredAt = new Date(event.date);
}

if (SHIPPED_TRACKING_STATUS_CODES.includes(scanDetail.scanType)) {
if (SHIPPED_TRACKING_STATUS_CODES.includes(scanDetail.scanType.toString())) {
results.shippedAt = new Date(event.date);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"type": "git",
"url": "https://github.com/mediocre/bloodhound.git"
},
"version": "0.3.0"
"version": "0.3.1"
}
2 changes: 1 addition & 1 deletion test/carriers/pitneyBowes.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('Newgistics', function() {
}
],
deliveredAt: new Date('2019-03-28T18:35:00.000Z'),
shippedAt: new Date('2019-03-27T15:06:00.000Z')
shippedAt: new Date('2019-03-21T13:18:00.000Z')
};

assert.deepStrictEqual(actual, expected);
Expand Down

0 comments on commit 9190c5f

Please sign in to comment.